getTimer

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


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

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:

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

Sandman9

No problem :wink: