#Double jump problem

1 messages · Page 1 of 1 (latest)

night kayakBOT
#

Use codeblocks to send code in a message!

To make a codeblock, surround your code with ```
To use C# syntax highlighting add cs after the three back ticks.

For example:
```cs
Console.WriteLine("Hello World");
```

Produces:

Console.WriteLine("Hello World");

To send lengthy code, paste it into https://paste.myst.rs/ and send the link of the paste into chat.

thorn raptor
#

You're code is doing exactly what you're saying is the problem.

        if ((currentCoyoteTime > 0f || isGrounded) && context.performed && !hasJumped)
        {
            Jump();
            hasJumped = true;
            isGrounded = false;
        }

This snippet checks if the Coyote Time is more than 0 or if the player Is Grounded, and if any of those are true it checks if the player is performing a Jump Input and Hasn't already jumped.

#

Please clarifiy

mystic folio