Double Jump sound plays only for the first jump

I have this node setup, that prevents the player from spamming the jump key midair for the jump sound. It would work perfectly if I hadn’t have a character with the ability to jump twice. The second jump has no sound of course but I’d like to add one, preferably not the same sound. I also should only play on the second jump and not every time the jump key is pressed.
But how?

I’m really new here so if anything is missing you need to help I’ll try to fix it.

DoOnce is being executed only once, unless it’s being Reset. And you only reset it when player is grounded. So, sound only plays once. If you want to play sound twice, play it when jump is “accepted”. Or reset this DoOnce on second jump.

2 Likes

Hi there,
There are many ways of setting up double jump. I tested this one and it works. Give it a try.

Hope that helps.

2 Likes