Need help making animation players unique for two instances of a scene

Godot Version

4.3

Question

Hi - I have two instances of my character.tscn in another scene. When I run the game, one of the animation players is able to run the animation for both instances.

The animation player is made from scratch, as is the Animation resource test.res. the animation player lives in character.tscn, so when I make two instances of character they each have their own animation player.

Things I’ve tried

  • Saving the ‘test’ Animation and making it ‘Local to Scene’
  • Making the MeshInstance3D for the model ‘Local to Scene’
  • Using a non-imported mesh instance i.e just a pyramid mesh
  • Moving the animation player outside of my subviewport

Surely it’s very common for people to create new instances of enemies dynamically, what am I missing?

OK turns out the issues were unrelated to animations or imports or resources. I had to check a box ‘Own World 3D’ in the SubViewport, otherwise the two character instances spawn in the same 3D world and get shown by both SubViewport’s

This post helped