Awesome-Game-Team / Awesome-Game

An Awesome Game
GNU General Public License v3.0
8 stars 9 forks source link

Landing after jumps #24

Closed jimfrize closed 8 years ago

jimfrize commented 8 years ago

When landing after jumps the character bounces and kind of skids along before the walking animation starts again. If you remove the player.body.bounce.y then this doesn't happen any more. What do people think about this?

OneSleepyDev commented 8 years ago

I had this same issue when I tried to implement it last week before leaving town! Glad someone else thought about it too.

We could add a delay to the jump animation, around 1-1.5 seconds of animation, then stop on the running(jumping) frame. Or we can remove the bounce, w/e works.

metalx1000 commented 8 years ago

@jimfrize I'm ok with losing the bounce, it makes it a little hard to do a second jump anyway. Lets just comment that line out in case we decide we want it in later.

I'm a little confused with your comment @OneSleepyDev, it sounds like you are talking about the start of the jump, not the end. am I just misunderstanding?

OneSleepyDev commented 8 years ago

@metalx1000 Yep, at the start. When I had coded my solution to it , it would go to the run(jump) frame when it bounced each time; which looked like a stutter. By adding that delay the char would look like they're still running.

metalx1000 commented 8 years ago

For now I set bounce to "0"