Currently i develop (php,mysql) turn based strategy game and i need to put time limits. Never used javascript before. My question is how to make function for the following thing :
Player 1 wants to attack player 2. Player 1 press the attack button. The page is showing Time left untill battle (example : 05:00 minutes + javascript cooldown) After the time is 00:00 the script is executed.
Thanks in advance. i don't have an idea how to start so i would like to get any suggestions or examples from where to start.