Coyote time bug,it gives double jump

help to fix my coyote time logic pls

Please help us to help you.
Can you describe the problem you are having in more detail?

image

when i spam space button it just double jumps,but i dont have double jump mechanic
and i dont need that

How about setting can_jump to false when the player jumps?

doesnt work

Can you please provide more context … in which function is your above code located?

image

I don’t see where you set can_jump = false. It looks like can_jump is always true.

image
its in timer connected func

So, after jumping, you wait until the timer finishes before setting can_jump = false.
I’m not sure, if that delay causes problems. Wouldn’t be a better location right next to velocity.y = jump_velocity?

2 Likes

just tried,still not working

any other ideas?

wait may it be because of jump buffer?
image

thanks for being with me i think i found solution,it was never coyote that was my jump buffer,thanks though
image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.