Now I can't stop the animation from looping. Please help?
extends CanvasModulate
var timer
func _init():
timer = Timer.new()
add_child(timer)
timer.autostart = true
timer.wait_time = 0.5
timer.connect("timeout", self, "_timeout")
func _timeout():
get_node("AnimationPlayer").play("Day")
func _on_AnimationPlayer_finished():
get_node("AnimationPlayer").stop()