home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00149.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  1.9 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, 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 soundEnabled to 1
  23.   set the castNum of sprite 8 to 172
  24.   set the visible of sprite 8 to 1
  25.   set the locV of sprite 8 to 250
  26.   repeat with n = 1 to 100
  27.     set the locH of sprite 8 to n
  28.     updateStage()
  29.   end repeat
  30.   set Rand_Sound to random(5)
  31.   set the castNum of sprite 8 to 173
  32.   updateStage()
  33.   repeat with n = 1 to 50
  34.     set vert to the locV of sprite 8
  35.     set the locV of sprite 8 to vert - n
  36.     startTimer()
  37.     repeat while the timer < 2
  38.       nothing()
  39.     end repeat
  40.     updateStage()
  41.   end repeat
  42.   set the visible of sprite 8 to 0
  43.   set the visible of sprite 20 to 1
  44.   set the visible of sprite 23 to 1
  45.   set the visible of sprite 24 to 1
  46.   set the blend of sprite 15 to 0
  47.   updateStage()
  48.   set the visible of sprite 23 to 0
  49.   set the visible of sprite 24 to 0
  50.   set the visible of sprite 22 to 0
  51.   set the visible of sprite 8 to 0
  52.   set the visible of sprite 19 to 0
  53.   updateStage()
  54.   startTimer()
  55.   set the visible of sprite 20 to 0
  56.   updateStage()
  57.   if notend = 0 then
  58.     go(1, "oasquiz")
  59.   end if
  60.   if notend = 1 then
  61.     set notend to 0
  62.     go("s")
  63.   end if
  64. end
  65.