Question by
Centriax · Jul 08, 2020 at 12:52 PM ·
2d2d game2d platformer2d physics
Cannot get my double jump to work (2D) ,
void Jump()
{
rb2D.AddForce(Vector2.up * jumpPower);
}
if(isGrounded == true)
{
doubleJumpCheck = true;
}
if(isGrounded == true && Input.GetKey("space"))
{
Jump();
}
else if(doubleJumpCheck && Input.GetKey("space"))
{
Jump();
doubleJumpCheck = false;
}
Comment
Your answer
Follow this Question
Related Questions
2D Platformer smooth horizontal movement? 1 Answer
Player controlled platforms 0 Answers
[2D] Rigid body snaps through floor and back 1 Answer
How to stop an object from following its parent? 3 Answers
Tilemap doesn't showing on window?? unity 5.6.1f1 ,Tilemap not showing on the Window or as 2D Object 0 Answers