TheFatMike
❔ while statements
if (gI.jumpInput == true)
{
if (grounded == true)
{
rb.velocity = new Vector2(gI.valueX * speed, jumpForce);
}
else if (additionalJumps > 0)
{
rb.velocity = new Vector2(gI.valueX * speed, jumpForce);
additionalJumps -= 1;
}
}
gI.jumpInput = false;
then it resets when my raycast hits the ground 😄 thank you @LLVM and then i call this function in "FixedUpdate" i have done "public int additionalJump;" so now i can make the jump pad change the variable when i need to thanks again for pointing me in the right tracks
35 replies