Shouldn’t you set double_jumped to false when it’s on ground ?
Just tryed but still it does nothing.
Managed only to make it jump infinite times or just one.
Don´t understand what’s not working in my script.
But thanks!
pp09 | 2019-05-15 12:06
Same here. I’ve tried do this on diffrent tutorials and no one solve my problem :< Player still jump only one time or infinite if I toggle of “is on floor” script.
Just in case you haven’t figured it out yet, change the Input.is_action_pressed("ui_up")to Input.is_action_just_pressed("ui_up")
The reason it didn’t work is because Input.is_action_pressed("ui_up")checks if the button is being held down, thus when you press it, the first and second jump gets executed at the ame time, making it look like a single jump.