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