# Trying to make a delay then go to a frame after delay

**URL:** https://forum.kirupa.com/t/trying-to-make-a-delay-then-go-to-a-frame-after-delay/268791
**Category:** Uncategorized
**Created:** [August 18, 2008, 9:20pm UTC](https://forum.kirupa.com/t/trying-to-make-a-delay-then-go-to-a-frame-after-delay/268791 "2008-08-18T21:20:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yo12334](https://avatars.discourse-cdn.com/v4/letter/y/7bcc69/32.png) [@yo12334](https://forum.kirupa.com/u/yo12334)
#### Post date: [August 18, 2008, 9:20pm UTC](https://forum.kirupa.com/t/trying-to-make-a-delay-then-go-to-a-frame-after-delay/268791/1 "2008-08-18T21:20:41Z")

</div>

Here is the code i came up with but it doesn’t work any help please ?

```auto
 
start = getTimer();
while (start+8000>now) {
 now = getTimer();
gotoAndStop(27);
}
 

```

help me :diss: (Its for a attack move after the delay the enemy attacks)
