Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - linai

Pages: 1
Ask a Question / Snap to "virtual pixels?"
« on: May 05, 2014, 08:27:16 am »

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.


Ask a Question / Sub-pixel positioning / drawing?
« on: September 06, 2013, 02:38:12 pm »

I'm pretty new to Stencyl and have a question about drawing. For my game's style, I would like to be able to draw some of my objects at subpixel positions. For example, some of my actors need to move a small (less than 1 pixel) amount each frame. Currently, it looks a bit rough as the drawing is being snapped or clamped to the nearest pixel. I understand that the performance might be better this way, but I would like the ability to at least selectively disable clamping.

From my previous experiences with Flixel, I know that you can use the "advanced" rendering solution to do this. It can be "activated" by, for example, rotating your sprite by 0.0001 degrees. I can't get this to work here, however.

Any ideas on if / how this would be possible?


Pages: 1