home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00223.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  2.4 KB  |  81 lines

  1. on mouseDown
  2.   global timeoption, timerate, diff, n, helpon, y, z
  3.   puppetSound("click")
  4.   set the visible of sprite 7 to 1
  5.   if timeoption = 0 then
  6.     set diff to 1
  7.     set the castNum of sprite 1 to 270
  8.   end if
  9.   if timeoption = 1 then
  10.     set timerate to 2
  11.   end if
  12.   set the visible of sprite 13 to 0
  13.   set the visible of sprite 28 to 0
  14.   set the visible of sprite 29 to 0
  15.   set the visible of sprite 30 to 0
  16.   set the locH of sprite 5 to the locH of sprite 5 + 2
  17.   set the locV of sprite 5 to the locV of sprite 5 + 2
  18.   set the locH of sprite 22 to the locH of sprite 22 + 2
  19.   set the locV of sprite 22 to the locV of sprite 22 + 2
  20.   updateStage()
  21.   startTimer()
  22.   repeat while the timer < 15
  23.     nothing()
  24.   end repeat
  25.   set the locH of sprite 5 to the locH of sprite 5 - 2
  26.   set the locV of sprite 5 to the locV of sprite 5 - 2
  27.   set the locH of sprite 22 to the locH of sprite 22 - 2
  28.   set the locV of sprite 22 to the locV of sprite 22 - 2
  29.   updateStage()
  30.   set the visible of sprite 26 to 1
  31.   set the locH of sprite 26 to 285
  32.   set the locV of sprite 26 to 190
  33.   if helpon = 1 then
  34.     set the locH of sprite 26 to 390
  35.   end if
  36.   repeat with n = 155 to 160
  37.     set the castNum of sprite 26 to n
  38.     updateStage()
  39.     startTimer()
  40.     repeat while the timer < 5
  41.       nothing()
  42.     end repeat
  43.   end repeat
  44.   startTimer()
  45.   repeat while the timer < 35
  46.     nothing()
  47.   end repeat
  48.   set the visible of sprite 26 to 0
  49.   if helpon = 1 then
  50.     set the visible of sprite 22 to 1
  51.     set the visible of sprite 23 to 1
  52.     set the visible of sprite 24 to 1
  53.     set the visible of sprite 13 to 0
  54.     set the visible of sprite 12 to 0
  55.     set the text of cast "quest" to "At the start, click on the timer in the top left hand corner, and select the timer speed you want"
  56.     set the text of cast "answer1" to "Back To Game"
  57.     set the text of cast "answer2" to "Back To Game"
  58.     set the text of cast "answer3" to "Back To Game"
  59.     updateStage()
  60.     startTimer()
  61.     repeat while the mouseDown = 0
  62.       nothing()
  63.     end repeat
  64.   end if
  65.   if (timeoption = 0) and (helpon = 0) then
  66.     set the castNum of sprite 43 to 306
  67.     set the visible of sprite 22 to 0
  68.     set the visible of sprite 23 to 0
  69.     set the visible of sprite 24 to 0
  70.     go("s")
  71.   end if
  72.   if timeoption = 1 then
  73.     set timeoption to 0
  74.     go(the frame)
  75.   end if
  76.   if helpon = 1 then
  77.     set helpon to 0
  78.     go(the frame)
  79.   end if
  80. end
  81.