I'm looking an idea how to implement 8 direction jump like The Legend of Zelda: A link to the Past, i was thinking if i could add jump animation or some dynamic jump from cliff to flat ground.
Is hard to do it?
I would do it this way:
Put an animation of player jumping, so would move the sprite up a bit and add a round shadow behind the spirte in the place where he was really. Then I would make a Boolean variable in the player called "isJump" and put to when "isJump" is true, able to walk over some obstacles :P
gillenew It seems logical, I will try it, i'm not sure it would be smooth.
Develop games in your browser. Powerful, performant & highly capable.
Joannesalfa - so that the motion appears smooth, you can add an animation or just move the sprite to the final position using - moveAtAngle 270� with dt*60 (or the value you want to move, best way is to test it)
gillenew Nice, that's good formula, i definetly try it.
I would have the player "jump" into a dedicated layer above, that would make collisions and overlap very easy to manage...