Goofing up the syntax again. XD

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 9BitStrider
:warning: Old Version Published before Godot 3 was released.
if jump_hold == false and speed.y < 0:
	speed.y = 0

Trying to set the Y Speed to 0 whenever the player releases the jump button before the peak of their jump. However, the above line prevents jumping period when testing the game. Any ideas?

:bust_in_silhouette: Reply From: 9BitStrider

My problem lied within how I structured the code. I placed this BEFORE letting gravity affect the speed value. Placing it after fixed it.