godot-start/script/demo10_animation/timer_animation.gd

10 lines
91 B
GDScript

extends Sprite
func _on_Timer_timeout():
if frame < 5:
frame += 1
else:
frame = 0