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

  1. on enterFrame
  2.   global valtimer, highest, pend, pwon, plost, diff, level, passno, scored, counter, qright, qwrong, notend, inarow, firsttime, gameover, beenhere, helpon, soundon, timeoption, n
  3.   set the visible of sprite 26 to 0
  4.   updateStage()
  5.   puppetSprite(43, 1)
  6.   set the locH of sprite 43 to 278
  7.   set the locV of sprite 43 to 412
  8.   set the blend of sprite 12 to 100
  9.   puppetSprite(1, 1)
  10.   puppetSprite(2, 1)
  11.   puppetSprite(3, 1)
  12.   set the visible of sprite 9 to 1
  13.   set the visible of sprite 2 to 1
  14.   set the visible of sprite 3 to 1
  15.   set the visible of sprite 15 to 1
  16.   set the visible of sprite 8 to 0
  17.   set beenhere to 0
  18.   set gameover to 0
  19.   set inarow to 0
  20.   set the visible of sprite 35 to 1
  21.   set the visible of sprite 13 to 1
  22.   set the visible of sprite 11 to 1
  23.   set the visible of sprite 42 to 0
  24.   set the visible of sprite 33 to 0
  25.   set the visible of sprite 12 to 1
  26.   set highest to 0
  27.   set qright to 0
  28.   set qwrong to 0
  29.   set plost to 0
  30.   set pwon to 0
  31.   set pend to 0
  32.   set notend to 1
  33.   set diff to 0
  34.   set level to 0
  35.   set passno to 0
  36.   set scored to 0
  37.   set counter to 0
  38.   set checkcounter to 1
  39.   set the visible of sprite 41 to 0
  40.   updateStage()
  41.   set the visible of sprite 8 to 0
  42.   set the visible of sprite 10 to 0
  43.   set the visible of sprite 36 to 0
  44.   set the visible of sprite 14 to 0
  45.   set the visible of sprite 5 to 1
  46.   set the visible of sprite 6 to 1
  47.   set the visible of sprite 7 to 1
  48.   set the visible of sprite 38 to 0
  49.   set the visible of sprite 37 to 0
  50.   set the cursor of sprite 2 to [111, 112]
  51.   set the cursor of sprite 3 to [111, 112]
  52.   set the cursor of sprite 5 to [111, 112]
  53.   set the cursor of sprite 6 to [111, 112]
  54.   set the cursor of sprite 7 to [111, 112]
  55.   set the cursor of sprite 35 to [111, 112]
  56.   set the cursor of sprite 45 to [111, 112]
  57.   set the cursor of sprite 27 to [111, 112]
  58.   set the visible of sprite 1 to 1
  59.   set helpon to 0
  60.   updateStage()
  61.   set the text of cast "quest" to " "
  62.   set the visible of sprite 2 to 1
  63.   set the visible of sprite 4 to 1
  64.   if firsttime = 0 then
  65.     set the text of cast "quest" to "Choose a difficulty level below."
  66.   end if
  67.   if firsttime = 1 then
  68.     set the text of cast "quest" to "Welcome to the Quiz. Choose a difficulty level below."
  69.     set firsttime to 0
  70.   end if
  71.   set the text of cast "answer1" to "Easy"
  72.   set the text of cast "answer2" to "Medium"
  73.   set the text of cast "answer3" to "Hard"
  74.   if timeoption = 1 then
  75.     set the text of cast "answer1" to "Slow"
  76.     set the text of cast "answer2" to "Medium"
  77.     set the text of cast "answer3" to "Fast"
  78.     set the text of cast "quest" to "Select a timer speed"
  79.   end if
  80.   set the visible of sprite 19 to 1
  81.   set the visible of sprite 22 to 1
  82.   set the visible of sprite 23 to 1
  83.   set the visible of sprite 24 to 1
  84.   updateStage()
  85.   set the text of cast "Review" to " "
  86.   updateStage()
  87.   startTimer()
  88.   repeat while the timer < 10
  89.   end repeat
  90.   updateStage()
  91.   when timeOut then nothing
  92.   set the visible of sprite 20 to 0
  93.   updateStage()
  94.   set the cursor of sprite 3 to [111, 112]
  95.   set the cursor of sprite 24 to [111, 112]
  96.   set the cursor of sprite 25 to [111, 112]
  97.   set the cursor of sprite 42 to [111, 112]
  98.   set the cursor of sprite 31 to [111, 112]
  99.   set the cursor of sprite 32 to [111, 112]
  100.   set the blend of sprite 16 to 75
  101.   set the blend of sprite 17 to 75
  102.   set the blend of sprite 18 to 75
  103.   updateStage()
  104.   pause()
  105.   puppetSound("click")
  106. end
  107.