godot-start/scene/demo10_animation/script/timer_animation.gd

10 lines
98 B
GDScript

extends Sprite2D
func _on_timer_timeout():
if frame < 5:
frame += 1
else:
frame = 0
pass