# Simple delay/setInterval?

**URL:** https://forum.kirupa.com/t/simple-delay-setinterval/93764
**Category:** Uncategorized
**Created:** [November 4, 2003, 4:44pm UTC](https://forum.kirupa.com/t/simple-delay-setinterval/93764 "2003-11-04T16:44:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)
#### Post date: [November 4, 2003, 4:44pm UTC](https://forum.kirupa.com/t/simple-delay-setinterval/93764/1 "2003-11-04T16:44:56Z")

</div>

I have 2 MC’s on the stage: mc\_1 & mc\_2.  
Both have following action:

```auto
onClipEvent (enterFrame) {
    speed = 20;
    this._y += speed;
    if (this._y>=100) {
        this._y = 100;
    }
}

```

How can I create a simple delay between  
the 2 mc’s? setInterval?  
Can anyone help me with this?

thanks,

regards
