How do i sync the animation of my shoot fireball with the fireball spawning

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

My animation for my range attack was so long that the projectile already travel before the animation ends i don’t know how to disable and able the position 2d and how to use a timer

:bust_in_silhouette: Reply From: njamster

As you haven’t specified which node you use for the animation, I’ll simply assume an AnimatedSprite. it works similar for an AnimationPlayer-node though.

yield($AnimatedSprite, "animation_finished")
# and THEN you spawn the projectile