![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | summertime_enjoyer |
so i wanna make a game like mario bros and idk how to add a jump animation to this
so yeah! (i have already coded the rest tho)
thank you!
func _process (delta):
if Input.is_action_pressed("left"):
$AnimatedSprite.play("walking")
$AnimatedSprite.flip_h = true
elif Input.is_action_pressed("right"):
$AnimatedSprite.play("walking")
$AnimatedSprite.flip_h = false
else:
$AnimatedSprite.play("idle")
https://godottutorials.pro/how-to-make-games-godot/
ramazan | 2022-09-13 11:01
2D Movement in Godot in Only 4 Minutes
sarapan_malam | 2022-09-13 15:53