0 votes

so, is it possible to make a timmer count how much time the game is closed and then change the game.

if it is how do I do it

Godot version 3.3.2
in Engine by (34 points)

1 Answer

0 votes

Short answer


Work around

You could do on

  • Windows use vbScripts
  • Linux use bash scripts
  • Android use a service / notifications
  • MaC related products idk

with OS.execute() something like


sleep, 5000
run, awesome_game.exe

Correct Approach

Save the time when your application is closed and on open subtract the current time from the saved time then take appropriate actions

by (5,808 points)

Yea that is a pretty good work around. But then the only down fall is that people could then change their date on their device to fake progress. Work around Iv experience the hard way is after resetting your time. You cant continue progress until you reached that time you see thus your just have to set your timer further and further into the future . Or connecting your timer to the internet which then prevents offline play. I think your just gonna have to pick your poison. Or be a genius and discover something new XD

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.