Button/Sprite - on push
- if doublejump is 0 - set doublejump to 30
- else "perform doublejump (insert your doublejump code here)"
Substract from doublejump variable 1*dt
With this code the user has 30 frames (or 0.5 Seconds) time to perform a double jump by tapping the button/sprite again.