How do I make a real time system

0 favourites
  • 2 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • So I'm doing a personal project where I want a variable to get added every Sunday. I thought I could use the date plugin but I couldn't figure out anything. The problem is that I can't do an every second event (604800 seconds) because if i turn off the program and go back on it the time would reset (and I cant leave my computer on 24/7) so how would I go about making it so on everysunday a variable gets added to the program.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The best thing to do, is whilst the game is running, every second, update a variable to the current date, and make sure to save this so this can be loaded in future.

    Then, say 3 weeks pass and you open your game, you will have the old date from 3 weeks ago, and you can compare it to today's date, and with these two dates, you can figure out how many Sundays have occurred, and add this to a "number of Sundays" variable.

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