Running multiple animation player nodes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jjphung
:warning: Old Version Published before Godot 3 was released.

I want to run multiple animations in the same scene for different sprites. But it seems they keep on overriding each other. Things I’ve tried:

  1. 1 animation player with multiple animation files
  2. 2 separate animation players with each its own animation file

You probably want to post some code !

Omicron | 2017-03-30 04:56

I haven’t written code for this. I’m doing this through the inspector.

jjphung | 2017-03-30 09:06

:bust_in_silhouette: Reply From: volzhs

I guess you made several objects by duplicating first object and just changing texture of sprites.
AnimationPlayer has same reference when you duplicating.
so, if you change one of them, all AnimationPlayer nodes are changed at the same time.
if you avoid this, you can do it by these steps.

  1. select each AnimationPlayer node
  2. click gear icon in Inspector panel
  3. select Make Sub-Resources Unique

Thank you very much!

jjphung | 2017-03-30 09:01