How can I keep a timer running when changing scenes?

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

I have a timer for upgrading something, but when I change worlds and I go back I still want it to be running or it finished. My current solution is to save the time when it would finish upgrading and then when I go back if the current time was past that time it would have finished upgrading and if not I just set the timer again. This solution works I just want a notification system in other worlds when it finishes upgrading. How can I do this?

I think you can have a signal which goes off when the other thing you have “upgrades” (as you put it). The thing is, the nodes have to be in the same scent tree for the signal to reach them.

Ertain | 2019-11-11 00:07

Probably, you can add the timer (by code) as child of the root viewport. (get_root())

wombatstampede | 2019-11-11 09:22