Duplicated Scenes Playing Animations Together

Godot Version

4.6

Question

I have a scene that is a copy of another with some modifications. Sometimes when an animation plays on one scene both scenes will play the animation. It doesn’t always happen, but it does happen frequently. This youtube video shows the problem. In the video each time I jump the jump animation is also played on the NPC. And then when the NPC swings it sword it also causes my character to swing their sword.

I don’t believe this is a code issue as I’ve spent a lot of time debugging the code and don’t see any issues. I think there must be a shared resource in either the animation player or animation tree that is causing my issue. I read that the animation player library can be made local to scene via the inspector, but my inspector is missing the animation player library. And the option to make the animation tree root unique is grayed out.

Any thoughts about what could cause these scenes to play animations together?

Here is the tree of each scene. The CharacterAnimator scene contains the meshes, skeletons, animation player, and animation tree.

And this is the tree of CharacterAnimator.

Try enabling local_to_scene flag for all animation node resources held by the animation tree.

1 Like

Just gave that a shot but I’m still see the same issue.

When I set all the nodes to local to scene I missed the root blend node. Its working now. Thanks @normalized!

2 Likes