Jump to content
  • Advertisement
Sign in to follow this  
Kate Nikles

Simple question about walk cycles

This topic is 565 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!