The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

If I upgrade a building in my game and it takes 20 minutes I store the time when it would finish upgrading in a singleton. Then when I go back to the scene and the time is less than the stored time I would set the timer for the remaining time. If it time was bigger than the time I would just upgrade it. The problem is that I want like a notification for when it finishes even if I am in the other scenes. How can I do this?

in Engine by (455 points)

1 Answer

0 votes

I suggest that you have a timer as the singleton rather than just storing a value.

(This might not answer your question very well I'm pretty inexperienced.)

by (399 points)

This is what I thought to do but I am going to have multiple upgrades running in the future so that would not work.

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.