# AS2 - Need help with setInterval

**URL:** <https://forum.kirupa.com/t/as2-need-help-with-setinterval/298791>\
**Category:** flash\
**Created:** [October 25, 2009, 9:44am UTC](https://forum.kirupa.com/t/as2-need-help-with-setinterval/298791 "2009-10-25T09:44:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueSquid](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@BlueSquid](https://forum.kirupa.com/u/BlueSquid)\
**Post date:** [October 25, 2009, 9:44am UTC](https://forum.kirupa.com/t/as2-need-help-with-setinterval/298791/1 "2009-10-25T09:44:17Z")

</div>

Hello, I am creating my first AS2 game, and have used the Vertical Shooter tut to get me started - [http://www.kirupa.com/developer/actionscript/vertical\_shooter.htm](http://www.kirupa.com/developer/actionscript/vertical_shooter.htm)

The main difference is that I am trying to catch falling objects, which need to all start falling from the same start height (contolled by y co-ordinate - I have managed to do this) but I also need them to start at phased intervals - at the moment they all start to fall at the same time. I am thinking I should be able to do this by using setInterval to control when each object starts to fall e.g. every 2 seconds, but am not sure where to insert it in my code.

Does this sound like the right approach? Or is there another pause function that I could be using?

I can post my code if needed.

Thanks
