Idle Click Game - While you were away Logic

Hello all,

I have created a Idle Game using blueprints and need help with one of the concepts.

“While you were away, you earned $XXX,XXX”

This is to be deployed on the iOS platform. I was thinking that the logic would involve getting the date and time of the save when you exit the app, and then subtract the difference in system date and time for when you log back on and the last save time. Is this the right track?

Thank you for you help.

Sounds like a good idea to me. Can you get the system/date easily? I haven’t done that in Unreal

What I ended up doing was taking the save time and date and getting the time and date at load, then used a difference to multiply by money/sec. It has been working for me so far. Im sure there is an easier way, but this is the only way I know how to do this.