0 votes

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
in Engine by (60 points)

You probably want to post some code !

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

1 Answer

+2 votes
Best answer

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

enter image description here

by (9,782 points)
selected by

Thank you very much!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.