- Home /
Jumping Top Down 2D Game
Hi , I'm on a top down 2D game in which I want the player to be able to jump when i press jump button This is all i know how to do it with C#
if bool Jumping = false , player can jump
if ( i press jump )
{
Jumping = true;
Run Jump Animation With The Direction that player is facing or moving ;
*Make Player Move X value with the same time as Jump Animation Time ( and end with the same time too )
*After Jump Animation end or player have moved X value , jumping = false
}
i dont know how to write code with the line that have * symbol , so can you guys help or suggest me how to do ? and i have different animations for each direction of the jump
Your answer
Follow this Question
Related Questions
2D RPG Jumping 0 Answers
Long press for charged Jump 1 Answer
Player controller jump not always working 2 Answers
Can't implement jumping to 2D side-scroller click-to-move. 1 Answer
Raycast2D not working 1 Answer