yourdogisonfire Posted September 8, 2007 Share Posted September 8, 2007 I've been working on creating an online turn-based game where a new turn occurs every hour, and the amount of items such as resources (gold, iron, food, whatever) is changed when the turn changes, regardless of whether a user is online or not. I've played many games like this before (I guess falling under the PBBG genre), so I know this is possible, but I can't figure out how to do it, and I'm obviously searching for the wrong phrases in forums because I can't find a tutorial anywhere. I'm coding the game mainly in PHP, and using MySQL for the database. Any tips or links to tutorials would be greatly appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/68510-solved-need-help-creating-the-timer-for-a-turn-based-game/ Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 Use crontab to run a script every hour. Quote Link to comment https://forums.phpfreaks.com/topic/68510-solved-need-help-creating-the-timer-for-a-turn-based-game/#findComment-344358 Share on other sites More sharing options...
yourdogisonfire Posted September 8, 2007 Author Share Posted September 8, 2007 Use crontab to run a script every hour. That's exactly what I was looking for. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/68510-solved-need-help-creating-the-timer-for-a-turn-based-game/#findComment-344359 Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 glad i could help. i guess you're supposed to click a Solved button somewhere so others know the problem is solved.... Quote Link to comment https://forums.phpfreaks.com/topic/68510-solved-need-help-creating-the-timer-for-a-turn-based-game/#findComment-344361 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.