Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | CrazyMind |
I was doing a game and i did send to a friend to test it, and he said that the jump don’t is smooth so i tried to make the code different, but i did tried to do the same that an old game that was an test to discover how gdscript works, so i did played to see and… he wasn’t jumping.
Here is one part of the code:
if Input.is_action_just_released("ui_select") is_on_floor():
velocity.y = jumpPower
print("pressed jump button")
$AudioStreamPlayer.play()
$AnimatedSprite.play("Fall")
jumping = true
may i see the rest of the jumping code
lewis glasgow | 2021-08-14 16:15
here is:
if jumping == true and is_on_floor():
jumping = false
CrazyMind | 2021-08-17 23:14