Count down time even when not in the game

  • I was wondering if there is a way to continue to count down the time passed even if not currently in the game. You know, like in most of the games where you have energy and it need some time to refill, or you need 7 hours to build a building, so you turn of your computer, do stuff, and then come back and it is built. <img src="smileys/smiley1.gif" border="0" align="middle" />

    I tried to find the answer to this question, but could't sorry if there is another one like this.. <img src="smileys/smiley5.gif" border="0" align="middle" />

  • I'm no pro but, I think maybe when you start the game it checks a server then adjusts the stats for time passed.

  • I'm not near a computer, so I can't check if C2 has access to the current date/time (I know JavaScript does), but that would be an easy way, save for people changing their system clocks.

  • Maybe if I could somehow make a variable look for an online clock? That should be possible, but I haven't tried anything like that so far, do you have any idea how?

  • It can easily be done in a plugin using the getTime() Method.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you tell me which plugin?

    Btw, I saw your game, can't wait to try it! :)

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