home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00126.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  2.0 KB  |  69 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.   end if
  8.   if timeoption = 1 then
  9.     set timerate to 2
  10.   end if
  11.   set the visible of sprite 13 to 0
  12.   set the visible of sprite 28 to 0
  13.   set the visible of sprite 29 to 0
  14.   set the visible of sprite 30 to 0
  15.   set the locH of sprite 5 to the locH of sprite 5 + 2
  16.   set the locV of sprite 5 to the locV of sprite 5 + 2
  17.   set the locH of sprite 22 to the locH of sprite 22 + 2
  18.   set the locV of sprite 22 to the locV of sprite 22 + 2
  19.   updateStage()
  20.   startTimer()
  21.   repeat while the timer < 15
  22.     nothing()
  23.   end repeat
  24.   set the locH of sprite 5 to the locH of sprite 5 - 2
  25.   set the locV of sprite 5 to the locV of sprite 5 - 2
  26.   set the locH of sprite 22 to the locH of sprite 22 - 2
  27.   set the locV of sprite 22 to the locV of sprite 22 - 2
  28.   updateStage()
  29.   if helpon = 1 then
  30.     set the visible of sprite 22 to 0
  31.     set the visible of sprite 23 to 0
  32.     set the visible of sprite 24 to 0
  33.     set the visible of sprite 13 to 0
  34.     set the visible of sprite 21 to 1
  35.     set the visible of sprite 25 to 1
  36.     set the visible of sprite 5 to 0
  37.     set the visible of sprite 6 to 0
  38.     set the visible of sprite 7 to 0
  39.     set the visible of sprite 12 to 0
  40.     set the text of cast "quest" to "At the start, click on the clock in the top left hand corner, and select the timer speed you want"
  41.     updateStage()
  42.     startTimer()
  43.     repeat while the mouseDown = 0
  44.       repeat with z = 1 to 15
  45.         if the mouseDown then
  46.           go(1, "oasquiz")
  47.           exit
  48.         end if
  49.         set the castNum of sprite 35 to z + 291
  50.         updateStage()
  51.       end repeat
  52.     end repeat
  53.   end if
  54.   if (timeoption = 0) and (helpon = 0) then
  55.     set the visible of sprite 22 to 0
  56.     set the visible of sprite 23 to 0
  57.     set the visible of sprite 24 to 0
  58.     go("s")
  59.   end if
  60.   if timeoption = 1 then
  61.     set timeoption to 0
  62.     go(the frame)
  63.   end if
  64.   if helpon = 1 then
  65.     set helpon to 0
  66.     go(the frame)
  67.   end if
  68. end
  69.