# getTimer

**URL:** <https://forum.kirupa.com/t/gettimer/96568>\
**Category:** Uncategorized\
**Created:** [December 10, 2003, 11:40pm UTC](https://forum.kirupa.com/t/gettimer/96568 "2003-12-10T23:40:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [December 10, 2003, 11:40pm UTC](https://forum.kirupa.com/t/gettimer/96568/1 "2003-12-10T23:40:24Z")

</div>

I have a MC with a motion tween inside of it. At the end of the motion tween I have

```auto

stop();
if (getTimer()>=5000) {
	gotoAndPlay("stairs");
}

```

Why doesn’t this work? It does not wait 5seconds. The scope looks right as well so I’m stumped

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 11, 2003, 12:48am UTC](https://forum.kirupa.com/t/gettimer/96568/2 "2003-12-11T00:48:47Z")

</div>

i always use a ‘function’ code to activate the delay, i’m not at home right now but if your question isnt answerd by 9:30 i’ll be able to post an example.

~~ Seretha :love:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 11, 2003, 11:47pm UTC](https://forum.kirupa.com/t/gettimer/96568/3 "2003-12-11T23:47:48Z")

</div>

oh i see … that worked … I like how much control using a function for this gives you as well 🙂 … thanks soo much …

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 12:00pm UTC](https://forum.kirupa.com/t/gettimer/96568/4 "2003-12-12T12:00:43Z")

</div>

No problem 😉
