Skip to content

Instantly share code, notes, and snippets.

@WolfgangSenff
Created September 13, 2019 19:55
Show Gist options
  • Save WolfgangSenff/83cc93214b9ef60206a7294cb87e1237 to your computer and use it in GitHub Desktop.
Save WolfgangSenff/83cc93214b9ef60206a7294cb87e1237 to your computer and use it in GitHub Desktop.
How to play looping animations in Godot _process or _physics_process
func _physics_process(delta):
if Input.is_key_pressed(KEY_A):
rotate_y(0.1)
if $AnimPlayer.current_animation != "Walk-loop":
$AnimPlayer.play("Walk-loop")
elif ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment