Animation Smoothness
Posted: Sun Feb 24, 2013 1:06 am
Issue
I've been playing around with sprite animation for the past day or two, and today I encountered an issue dealing with animation smoothness. I've attached an example of what I mean in to this post, for reference. Basically, when moving left the animation is very smooth, but when moving right the animation because much less smooth (moves to the left and right, and doesn't stay as steady). After a few hours of changing various variables, and inspecting my code, I came to the realization that the issue is probably spawned from the fact that the engine pulls the sprites starting from the upper left (x,y) position.
Before I figured out how to mirror sprites in game, I had mirrored them on the sprite sheet. This is what I believe to be causing the difference in animation smoothness.
Inquiry
Does anyone know of a way of preventing this? Am I just overlooking something that is incredibly simple? Any suggestions are appreciated.
Thank you!
I've been playing around with sprite animation for the past day or two, and today I encountered an issue dealing with animation smoothness. I've attached an example of what I mean in to this post, for reference. Basically, when moving left the animation is very smooth, but when moving right the animation because much less smooth (moves to the left and right, and doesn't stay as steady). After a few hours of changing various variables, and inspecting my code, I came to the realization that the issue is probably spawned from the fact that the engine pulls the sprites starting from the upper left (x,y) position.
Before I figured out how to mirror sprites in game, I had mirrored them on the sprite sheet. This is what I believe to be causing the difference in animation smoothness.
Inquiry
Does anyone know of a way of preventing this? Am I just overlooking something that is incredibly simple? Any suggestions are appreciated.
Thank you!