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

10 lines
98 B
GDScript
Raw Normal View History

2023-11-18 04:36:34 +00:00
extends Sprite2D
func _on_timer_timeout():
if frame < 5:
frame += 1
else:
frame = 0
pass