Sign in to follow this  
Kate Nikles

Simple question about walk cycles

Recommended Posts

So I'm making sprites of a jumping frog for my first game. The frog goes forward through the air a bit as she jumps when she moves.  You can see that she moves forward a bit as she jumps and lands ahead of where she started.  Since the sprite itself will be moving as she jumps once she's in the game, do I need to move the frames so that she stays in place the whole time?  I don't know if the way I worded that made sense. I feel like this is kind of a stupid question so I'm sorry but if someone could give me a clear explanation I'd really appreciate it.  

The animation in question:

tumblr_onr1p98avu1uz3dpao1_540.gif

Share this post


Link to post
Share on other sites

The best option is to remove the movement from the animation, and move the character via code.

If you don't do it that way, you'd have to play the animation, then teleport the character at the end of the animation, and ensure that everything is in sync. Additionally, you would have to still move some sort of collision representation anyway -- for collecting pickups, or colliding with walls and enemies.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this