1
Ask a Question / Snap to "virtual pixels?"
« on: May 05, 2014, 08:27:16 am »
Hello,
I'm currently playing around with making a very low resolution game. I would like to use the Scale: 4x setting to scale the game 4x. Works great... mostly.
Here's the issue: when scaled to 4x, the actors no longer snap to the new "virtual pixels." So, if i have an actor moving at a speed slower than 1px per frame, it can move physical screen pixels, which are less than my new, 4x scaled up, "virtual pixels." Is there any way around this other than somehow rounding the drawing coordinates before drawing each actor?
I've attached a small .gif to illustrate what i'm talking about.

Thanks!
I'm currently playing around with making a very low resolution game. I would like to use the Scale: 4x setting to scale the game 4x. Works great... mostly.
Here's the issue: when scaled to 4x, the actors no longer snap to the new "virtual pixels." So, if i have an actor moving at a speed slower than 1px per frame, it can move physical screen pixels, which are less than my new, 4x scaled up, "virtual pixels." Is there any way around this other than somehow rounding the drawing coordinates before drawing each actor?
I've attached a small .gif to illustrate what i'm talking about.
Thanks!