home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00196.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  2.3 KB  |  79 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.   set the visible of sprite 26 to 1
  30.   set the locH of sprite 26 to 285
  31.   set the locV of sprite 26 to 190
  32.   if helpon = 1 then
  33.     set the locH of sprite 26 to 390
  34.   end if
  35.   repeat with n = 155 to 160
  36.     set the castNum of sprite 26 to n
  37.     updateStage()
  38.     startTimer()
  39.     repeat while the timer < 5
  40.       nothing()
  41.     end repeat
  42.   end repeat
  43.   startTimer()
  44.   repeat while the timer < 35
  45.     nothing()
  46.   end repeat
  47.   set the visible of sprite 26 to 0
  48.   if helpon = 1 then
  49.     set the visible of sprite 22 to 1
  50.     set the visible of sprite 23 to 1
  51.     set the visible of sprite 24 to 1
  52.     set the visible of sprite 13 to 0
  53.     set the visible of sprite 12 to 0
  54.     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"
  55.     set the text of cast "answer1" to "Press Any Key"
  56.     set the text of cast "answer2" to "Press Any Key"
  57.     set the text of cast "answer3" to "Press Any Key"
  58.     updateStage()
  59.     startTimer()
  60.     repeat while the mouseDown = 0
  61.       nothing()
  62.     end repeat
  63.   end if
  64.   if (timeoption = 0) and (helpon = 0) then
  65.     set the visible of sprite 22 to 0
  66.     set the visible of sprite 23 to 0
  67.     set the visible of sprite 24 to 0
  68.     go("s")
  69.   end if
  70.   if timeoption = 1 then
  71.     set timeoption to 0
  72.     go(the frame)
  73.   end if
  74.   if helpon = 1 then
  75.     set helpon to 0
  76.     go(1, "oasquiz")
  77.   end if
  78. end
  79.