home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00209.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  2.0 KB  |  63 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 blend of sprite 6 to 90
  7.   set the locH of sprite 6 to the locH of sprite 6 + 3
  8.   set the locV of sprite 6 to the locV of sprite 6 + 3
  9.   set the locH of sprite 23 to the locH of sprite 23 + 3
  10.   set the locV of sprite 23 to the locV of sprite 23 + 3
  11.   updateStage()
  12.   set the locH of sprite 6 to the locH of sprite 6 - 3
  13.   set the locV of sprite 6 to the locV of sprite 6 - 3
  14.   set the locH of sprite 23 to the locH of sprite 23 - 3
  15.   set the locV of sprite 23 to the locV of sprite 23 - 3
  16.   set the blend of sprite 6 to 60
  17.   updateStage()
  18.   set the soundEnabled to 1
  19.   set the visible of sprite 8 to 1
  20.   set the locV of sprite 8 to 340
  21.   repeat with n = 1 to 100
  22.     set the locH of sprite 8 to n
  23.     updateStage()
  24.   end repeat
  25.   set Rand_Sound to random(5)
  26.   set the castNum of sprite 8 to 173
  27.   updateStage()
  28.   repeat with n = 1 to 50
  29.     set vert to the locV of sprite 8
  30.     set the locV of sprite 8 to vert - n
  31.     startTimer()
  32.     repeat while the timer < 2
  33.       nothing()
  34.     end repeat
  35.     updateStage()
  36.   end repeat
  37.   set the visible of sprite 8 to 0
  38.   set the visible of sprite 19 to 1
  39.   set the text of cast "quest" to "Statistics"
  40.   set the visible of sprite 28 to 1
  41.   set the visible of sprite 29 to 1
  42.   set the visible of sprite 30 to 1
  43.   set the visible of sprite 13 to 1
  44.   set the text of cast "one" to " " & highest
  45.   set the text of cast "two" to " " & qright
  46.   set the text of cast "three" to " " & qwrong
  47.   set the blend of sprite 15 to 0
  48.   set the visible of sprite 8 to 0
  49.   startTimer()
  50.   set the visible of sprite 20 to 0
  51.   updateStage()
  52.   if notend = 0 then
  53.     pause()
  54.   end if
  55.   if notend = 1 then
  56.     startTimer()
  57.     repeat while the timer < 250
  58.       nothing()
  59.     end repeat
  60.     go(1, "oasquiz")
  61.   end if
  62. end
  63.