How to save a Timer and AnimationPlayer data on global autoload?

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


I got those two nodes close to the root of my main scene (GUI/TileMap), settin the passin of day/night with its modulation, and i’d like to get it for my other scenes, on point and click images/Sprites.

There should be some script, in’it?

:bust_in_silhouette: Reply From: Asthmar

If i’m understanding your issues correctly.
You can either save your day/night cycle node and scripts as one scene and can then instance them into another scene when needed.

Or If you want the day and night to be the same even when you change scenes then you would still need to make the day/night cycle its own scene and make your day/night cycle script an auto load.

Yes, but with my day/night cycle on an other autoloaded scene, can’t set the keys of my time modulation (darkening graphics at night) with the animationplayer.

And that’s the best way i found, havin not enough skill with script to code that. Is there no way to make global only those two nodes data, bein still in my main, non autoloaded scene?

Syl | 2020-02-13 08:27