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

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