Double Jump

I know that there is an example for this but I think that the behaviors in the example wouldn’t be ideal in my game. I need a way to double jump that would go smoothly in my game.
Please help
https://flowlab.io/game/play/1465748