home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / GeoMatch.dxr / 00013_looper.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  974 b   |  36 lines

  1. global gTimeLoop, gScore, gPaused
  2.  
  3. on exitFrame me
  4.   go(the frame)
  5.   if the timer > ((60 * 31) + 20) then
  6.     sprite(3).rewind()
  7.     sprite(3).pause()
  8.     sprite(36).locV = 390
  9.     sprite(37).locV = 390
  10.     sprite(36).visible = 1
  11.     sprite(37).visible = 1
  12.     repeat while the timer <= 200
  13.       sprite(36).blend = sprite(36).blend + 10
  14.       sprite(37).blend = sprite(37).blend + 10
  15.       updateStage()
  16.       gTimeLoop = the timer
  17.       repeat while the timer < (gTimeLoop + 10)
  18.         sprite(37).visible = 0
  19.       end repeat
  20.       updateStage()
  21.       gTimeLoop = the timer
  22.       repeat while the timer < (gTimeLoop + 10)
  23.         sprite(37).visible = 1
  24.       end repeat
  25.     end repeat
  26.     sprite(36).blend = 100
  27.     sprite(37).blend = 100
  28.     member("GameOverSpeech").text = string("Give it another try!")
  29.     member("GameOver_Score").text = "Total Score:" & RETURN & RETURN & string(gScore)
  30.     sprite(3).pause()
  31.     gPaused = 1
  32.     startTimer()
  33.     go(12)
  34.   end if
  35. end
  36.