Offline time clicker game

I want to make a time that works even if the player is gone. And then lets me calculate how long they gone and say like if they gone for like 1 min and im giving away every 5 second lets say $500. so how could i? i have gotten help with the time no problem i just would like to know how calculate it. take a look at this vid https://mwserver.w3verpoke.com/share/K3LvJ3hu62fLQvduJFTJVkpF1nkVOQj2QN0sMY4erbO7txoiOVfmLXYaMp0T_UE0e74
However heres the actions. The first actions are the timer. The money variable is the one im having issues with.


What im looking to make is if the player is gone certain of timer like 30 sec, i want to give them $500 every 5 sec. So how do i this?

As a heads up, that last event in your screen shot:
image

that condition only checks whether poi is equal to 6 (30/5).

Instead, remove that condition and change the action to use the formulae "Change the variable Money add trunc(poi / 5) * 500" to reward the player $500 for every 5 seconds they’re away.

I did the thing you told me and it works however after 5 sec the Money variable keeps adding non stop. Here’s a quick screen rec Watch Screen_Recording_20251029_055448_GDevelop | Streamable
and a screenshot

The thing would seem like poi variable is not going up above 5 sec and so the money seems to keep adding non stop.

That indicates that you’re not adjusting the time variables. Remember that when you apply the money based on the poi value, you’ll need to reset the Time structure values to the current time.

And you will need to add a condition that checks whether poi is more than 30.