# setInterval

**URL:** <https://forum.kirupa.com/t/setinterval/116399>\
**Category:** Uncategorized\
**Created:** [July 17, 2004, 6:12pm UTC](https://forum.kirupa.com/t/setinterval/116399 "2004-07-17T18:12:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moopers](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Moopers](https://forum.kirupa.com/u/Moopers)\
**Post date:** [July 17, 2004, 6:12pm UTC](https://forum.kirupa.com/t/setinterval/116399/1 "2004-07-17T18:12:26Z")

</div>

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.

thx.
