synchronize several animated sprites

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lettucing

so, i have a placement system you can place stuff

i have a conveyor animated texture, and since you can place stuff, they aren’t synced until you reload the game (via save and load)

is there a way to sync the animated sprites?

:bust_in_silhouette: Reply From: Ando

You could make a global object with a timer or something that runs through the number of frames you need.
Then in the sprites make a script that fetches the global animation frame and set it via code.

$AnimatedSprite.frame = globalFrame