I've been trying and trying to code a timer in PHP for on line timer based game, but I can't figure it out. I've searched all over the Internet for a solution, but can't find anything.
I need to code a timer that will give you a certain amount of experience for a certain action, and the timer needs to run on a certain length for that certain action.
SO, for example. Say Your mining, for sake of the thread, it takes 30 seconds to mine 1 copper ore. Mining that one copper ore in that 30 second time period gives 13 experience. Any thoughts?
I need to code a timer that will give you a certain amount of experience for a certain action, and the timer needs to run on a certain length for that certain action.
SO, for example. Say Your mining, for sake of the thread, it takes 30 seconds to mine 1 copper ore. Mining that one copper ore in that 30 second time period gives 13 experience. Any thoughts?