GreenFour / pencil-knight

TCSS 491 Computational Worlds project
MIT License
0 stars 1 forks source link

Jumping animation broken #7

Closed pilocchii closed 6 years ago

pilocchii commented 6 years ago

The jumping animation currently plays based on state, and has looping issues. If we tie each stage of the jumping/falling state to vertical velocity, then "jump" simply has to change the velocity, and all animations will transition smoothly.

From what I can tell, the current Hero sprite has frames for take-off, ascent, apex, falling, and landing. Each of these is a separate state, but tied to velocity (or changing velocity).

pilocchii commented 6 years ago

Jumping animation has changed to be ascending and descending. It's missing a "take-off" when jump is first pressed, a "floating" at the apex of the jump when velocity is 0 or near 0, and a "landing" animation.

pilocchii commented 6 years ago

Ascending animation appears to have 1 frame that is part of the take-off animation