NPC Idle Animations Desynced

Godot Version

4.7

Question

Hi all,

I am putting together a testing area with a bunch of npcs using their idle animations, and I realized that some of them are in sync (which is what I want) while 2 others are not.

What I mean by this is that most of them switch sprites at exactly the same time, which is a fun visual effect, but some of them are off by a fraction of a second which ruins the look.

I have all animations set to autoplay and loop, and they all are set to 1 FPS.

Here are 2 of the npcs I am talking about.

Does anyone know what causes this and how to undo it?

(I have tried moving them around to see if it’s their initial position relative to the player, but that does not change anything)

Do you instantiate them at different times? Their animation cycles will start from when they get instantiated.

If not, check frame durations. You can set frame duration for the individual frames, both in godot and if you used some program like Aseprite. You or whoever made the sprites maybe though 220ms looked better on one and 250ms looked better on the other.