Topic was automatically imported from the old Question2Answer platform.
Asked By
pafos_kota
I have an AnimationPlayer and sprites for one use in whole game. How can I use it to play animation for once without a loop?
this a piece of code that i tried to use in first scene:
Your code should look a little more like this:
extends Node2D
func _ready():
$frisk/AnimationPlayer.play(“wake_up”)
OR, if you want to make it wait a little before it plays the anim, put yield(get_tree().create_timer(SECONDS_TO_WAIT), "timeout")
before the AnimPlayer.play() line.