Jump to content
MakeWebGames

TomW

Members
  • Posts

    3
  • Joined

  • Last visited

TomW's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. TomW

    Time and countdown help

    Thanks for the help, I have a better understanding of how I'm going to do this now. I will post an update of my progress when I have got the core features of the game done.
  2. TomW

    Time and countdown help

    I like the method of giving it them in seconds, but how would I get the database to countdown live, cause it will have to countdown by 1 every second. Octarine I like your method, I do want a countdown on the top of the page so a user can see how long they have left in real time. I will try your code thanks very much!
  3. Hello, I am developing a new PHP game which I have been working on for sometime now. Some of you may have seen the film In Time, time is the new currency and if their time runs out they will die. I want to create something similar which has my own modifications on it. I am stuck on a problem I have. I want to give people 1 week of time and a count down will be started, they can gain more time by doing jobs and other roles which will be added to the game later on. I want to know which will be the most efficient way of doing the time. I want a count down in the top of the screen which they can always view. The way I have come up with is I make a time stamp of when the user registers and add a week onto it. Then from that keep adding time when jobs are completed. I will then have a cron job running every second which will find out if the time is over or not, once time is over the person will be killed. Could someone help me as to how i could achieve this. Or is there an easier, or more efficient way of doing it. Thanks, Tom.
×
×
  • Create New...