home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00097.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  1.8 KB  |  56 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 visible of sprite 26 to 1
  21.   set the locH of sprite 26 to 395
  22.   set the locV of sprite 26 to 270
  23.   repeat with n = 155 to 160
  24.     set the castNum of sprite 26 to n
  25.     updateStage()
  26.     startTimer()
  27.     repeat while the timer < 5
  28.       nothing()
  29.     end repeat
  30.   end repeat
  31.   startTimer()
  32.   repeat while the timer < 35
  33.     nothing()
  34.   end repeat
  35.   set the visible of sprite 26 to 0
  36.   set Rand_Sound to random(5)
  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 " "
  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. end
  56.