Time limit

I’m trying to make a game with a time limit of around 60 seconds and have tried of couple ideas but have been unsuccessful in getting anything to work. What I tried was putting this code on a button:

on (release) {
gotoAndPlay (2);

Then, on the next frame:

onClipEvent (enterFrame) {
_root.time3 = _root.time2 - _root.time1;
if (_root.time3 > 6000) {

I’m sure that this is just absolutely wrong because I checked what the variables return and that’s absolutely nothing…Can anyone give me any suggestions? Thanks for any help

  1. not getTime(), but getTimeR(); !!
  2. no path to be used with it, it’s a general property of the movie, all you need is variable=getTimer();
  3. the exact code you want is on p.466 of the Moock book; as in every other post, isay: Folks, go get that book!!
    (want me to post the code?)

Thanks for telling me about that function! Once I had that, I got it up and running in a couple minutes, so you don’t have to post the code. I’m also probably going to get that book. After you mentioned it, I looked it up on amazon.com and everyone who got it likes it…so I figured, why not?

Hi Eyezberg,

hope u still reading this. can u post the code to set the time limit?