Topic was automatically imported from the old Question2Answer platform.
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
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.
$AnimatedSprite.play("default")
yield($AnimatedSprite, "animation_finished")
# and THEN you spawn the projectile