How do I create time counting while the game is off?

0 favourites
  • 4 posts
From the Asset Store
An educational game for counting pictures. An easy to use template for developers to build larger games
  • Hi!

    I have read in several places in this forum regarding how to set up your game so that it "farms" while you are offline. I'm experimenting with learning construct right now. What I want to achieve is that when I turn off the game, the game will store what I have collected. When I start the game again, I want the game to count the time from the last time I turned off, to now when I start the game again. So some form of idle game function.

    I have seen that people answered in several similar ways here in the forum, but I am not a programmer and do not really understand the explanations.

    Can someone who is knowledgeable explain to me how to do in my eventSheet? when I close the game, my progression will be saved, when I open the game later in the day, the time that has elapsed will be added to the progression.

  • To add, im like here in knowledge.. and i get it, it is wrong. But maybe you understand what i want.

    Hmm the image isnt showing.

    but its:

    start of layout -> Local storage set get item

    on suspend -> Local storage set item

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here is how i solved this.

    Basically it checks at every start if the last start is longer than 24 hours ago and if yes the player gets his dayly bonus.

    Kind regards

    Joschi

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)