Created
September 13, 2019 19:55
-
-
Save WolfgangSenff/83cc93214b9ef60206a7294cb87e1237 to your computer and use it in GitHub Desktop.
How to play looping animations in Godot _process or _physics_process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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