godot-start/script/demo10_animation/timer_animation.gd

10 lines
91 B
GDScript
Raw Normal View History

2021-10-07 10:38:10 +00:00
extends Sprite
func _on_Timer_timeout():
if frame < 5:
frame += 1
else:
frame = 0