how to improve the double jump, the character when falling still jumps twice in the air. I want him to jump once.

This Mechanics works, but when the character is in the air he still jumps twice, what I want is for him not to jump twice, just once when he is in the air, and twice when he is on the ground.

Summary

This text will be hidden

First of all, you don’t need to use ‘or’ / ‘if one of these conditions is true’ when you only have one condition.

And to answer your question, delete all your existing double jump mechanics and variables then try using this event only:
Condition: Player_Caixa is on floor (Reversed), Trigger once
Action: Allow Player_Caxia to jump again

Hope this works out!

This makes him jump over and over, without stopping.

But, Thanks for the help I managed to solve, I made a Boolean variable to solve with true or false, so when it is in the air, set the variable to true and on the floor to false.

2 Likes

I think you forgot to use ‘trigger once’.

Player_Caixa is on floor (Reversed), Trigger once
Action: Allow Player_Caxia to jump again

That’s tidier If it works.

I used it only that the character was jumping up repeatedly, I think that’s how you are talking? send me a picture of the mechanics so I can understand what you’re saying.