Jump to content

Settimeout In Php


mobone
 Share

Recommended Posts

For my game I have a javascriipt battle scripts with setTimeouts to call when the next turn (attack) can happen. The setTimeout calls the attack function and the attack happens at a specific and changing attack rate. Is there a way that you can think of that I could do this with php. I can't use sleep because its two timers at once. I could find the difference between the two timers and set the sleeps accordingly, but is there an easier way?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...