how to allow my character to move after a "Ready" message similar to Megaman

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By skylabelmho

HI, i need allow my character to move after a “Ready” message similar to Megaman.

i tried to stop animation whit a script in a Node parent. but isnt work.

pls help

extends Node2D
func _ready():
$AnimationPlayer.play("ready")
yield($AnimationPlayer, "animation_finished")
$SpiralMountain.play()
:bust_in_silhouette: Reply From: Ertain

Use a Timer. When the timer finishes, it fires off a signal that can then be used to start the animation. Alternatively, you can have a blinking “Ready?” message which, when finishes, can signal to the main script to start the animation.

:bust_in_silhouette: Reply From: epark009

You can add a Call Method track to your AnimationPlayer. Add a keyframe in the track to call a specific function once the animation reaches that point.