Should animation player be a child of my sprite?

I’m a bit lost on this because I’ve seen this implemented in several different ways and its confusing me quite a bit. When I auto-import a spritesheet as a sprite with an animation player attached, it creates a sprite that has an animation player as a child. Conversely, when I look at the documentation, they have the animation player merely be adjacent to the sprite. What is the optimal construction here?

It doesn’t matter. Animation players have no position or ancestry concerns. It’s an esthetic choice.

If the animation only effects one node or branch I would put it as a child just for visual understanding that that animation player will effect those nodes.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.