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

  1. on mouseDown
  2.   global ans1, true_answer, Rand_Quest, guess, counter, checkcounter, n, level, m, scored, Rand_Sound, oldlevel, leveldiff, vert, x, highest, qright, qwrong, notend
  3.   set checkcounter to 1
  4.   set the visible of sprite 20 to 0
  5.   puppetSound("click")
  6.   set the locH of sprite 6 to the locH of sprite 6 + 2
  7.   set the locV of sprite 6 to the locV of sprite 6 + 2
  8.   set the locH of sprite 23 to the locH of sprite 23 + 2
  9.   set the locV of sprite 23 to the locV of sprite 23 + 2
  10.   updateStage()
  11.   startTimer()
  12.   repeat while the timer < 15
  13.     nothing()
  14.   end repeat
  15.   set the locH of sprite 6 to the locH of sprite 6 - 2
  16.   set the locV of sprite 6 to the locV of sprite 6 - 2
  17.   set the locH of sprite 23 to the locH of sprite 23 - 2
  18.   set the locV of sprite 23 to the locV of sprite 23 - 2
  19.   updateStage()
  20.   set the soundEnabled to 1
  21.   set the visible of sprite 8 to 1
  22.   set the locV of sprite 8 to 340
  23.   repeat with n = 1 to 100
  24.     set the locH of sprite 8 to n
  25.     updateStage()
  26.   end repeat
  27.   set Rand_Sound to random(5)
  28.   set the castNum of sprite 8 to 173
  29.   updateStage()
  30.   repeat with n = 1 to 50
  31.     set vert to the locV of sprite 8
  32.     set the locV of sprite 8 to vert - n
  33.     startTimer()
  34.     repeat while the timer < 2
  35.       nothing()
  36.     end repeat
  37.     updateStage()
  38.   end repeat
  39.   set the visible of sprite 8 to 0
  40.   set the visible of sprite 19 to 1
  41.   set the text of cast "quest" to "Statistics"
  42.   set the visible of sprite 28 to 1
  43.   set the visible of sprite 29 to 1
  44.   set the visible of sprite 30 to 1
  45.   set the visible of sprite 13 to 1
  46.   set the text of cast "one" to " " & highest
  47.   set the text of cast "two" to " " & qright
  48.   set the text of cast "three" to " " & qwrong
  49.   set the blend of sprite 15 to 0
  50.   set the visible of sprite 8 to 0
  51.   startTimer()
  52.   set the visible of sprite 20 to 0
  53.   updateStage()
  54.   if notend = 0 then
  55.     pause()
  56.   end if
  57.   if notend = 1 then
  58.     startTimer()
  59.     repeat while the timer < 250
  60.       nothing()
  61.     end repeat
  62.     go(1, "oasquiz")
  63.   end if
  64. end
  65.