The best practice for using 2D animation?

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

Issue: I have an enemy, the enemy has all standard animations like idle, run, jump etc, so AnimatedSprite for that but the enemy has also an attack animation which needs properties. So in total I have to setup an AnimatedSprite, Sprite and Animationplayer and whenever the enemy attacks, I have to disable the AnimatedSprite, activate sprite, play animation and then deactivate sprite and activate Animatedsprite. Is that the only way? Seems like quite a hassle to me to having constantly deactivating and activating everything.