Sprite and AnimationPlayer

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

Hello, my question is if the AnimationTree can be used with the AnimatedSprite.
Because I have a lot of animations and transferring them to a Sprite Sheet would be very tedious.

:bust_in_silhouette: Reply From: rossunger

There’s no reason you couldn’t swap out the sprite to a different animated sprite in the AnimationTree… is that what you’re trying to do?

You can remove the current AnimatedSprite node, and add a different one…
or you can manually change all the settings e.g. myAnimatedNode.spriteFrames = …

you could also have all the AnimatedSprites as children of your node, and just hide the ones that aren’t playing right now… and unhide them when you need them