New to Godot, annoying question

Godot Version

Godot v4.2.1


I want to control the animated sprite for each of these duplicated character scenes (all have the same script) - tried this:
but got this error:
Here is what my scene looks like:

Sorry if there isn’t enough detail here, please ask if you need more info. Thanks.

For this to work, the script would need to be on battle scene.

1 Like

$ doesn’t access siblings

1 Like

If this is in enemy group then use an …/pathtonodes.
If it is in player groups, remove the playergroups in front