ok, i have a question. Can anyone tell me how the setInterval command works?

i want it so that after you fire a laser from your spaceship, it takes 0.5 seconds to fire another.


setInterval(function,time in ms);

It calls the funtion every time the timer reaches the time in ms. It resets once it calls it.



Please use more descriptive titles Moopers. I moved this thread to AS too. Read this for more info on setInterval: