Lets say i wanted my character to be able to jump a certain amount of times while in the air
var jumps = 2
var jump_dec = -1
if is_on_floor() and Input.is_action_just_pressed("move_jump"):
velocity.y = jump_height
if not is_on_floor() and Input.is_action_just_pressed("move_jump"):
velocity.y = jump_height
jump_dec - jumps and print(jumps)
and when the character is out of jumps, this input("move_jump") is deactivated until the character is on the floor again
my mind is so exhausted trying to figure out why i can get the number to go down