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

  1. on mouseDown
  2.   global diff, timerate, timeoption, n, helpon
  3.   puppetSound("click")
  4.   set the visible of sprite 7 to 1
  5.   if timeoption = 0 then
  6.     if the keyCode = 28 then
  7.       set diff to 2
  8.     else
  9.       if the keyCode <> 28 then
  10.         set the text of cast "quest" to "Access Denied! You didn't enter the correct password! Complete the easy level to get the password"
  11.         startTimer()
  12.         repeat while the timer < 200
  13.           nothing()
  14.         end repeat
  15.         go(1, "oasquiz")
  16.         exit
  17.       end if
  18.     end if
  19.   end if
  20.   if timeoption = 1 then
  21.     set timerate to 3
  22.   end if
  23.   set the locH of sprite 6 to the locH of sprite 6 + 2
  24.   set the locV of sprite 6 to the locV of sprite 6 + 2
  25.   set the locH of sprite 23 to the locH of sprite 23 + 2
  26.   set the locV of sprite 23 to the locV of sprite 23 + 2
  27.   updateStage()
  28.   startTimer()
  29.   repeat while the timer < 15
  30.     nothing()
  31.   end repeat
  32.   set the locH of sprite 6 to the locH of sprite 6 - 2
  33.   set the locV of sprite 6 to the locV of sprite 6 - 2
  34.   set the locH of sprite 23 to the locH of sprite 23 - 2
  35.   set the locV of sprite 23 to the locV of sprite 23 - 2
  36.   updateStage()
  37.   if helpon = 1 then
  38.     set the text of cast "quest" to "When asked a question, simply click on the answer you think is correct!"
  39.     set the visible of sprite 21 to 1
  40.     set the visible of sprite 25 to 1
  41.     set the visible of sprite 22 to 0
  42.     set the visible of sprite 23 to 0
  43.     set the visible of sprite 24 to 0
  44.     set the visible of sprite 5 to 0
  45.     set the visible of sprite 6 to 0
  46.     set the visible of sprite 7 to 0
  47.     updateStage()
  48.     repeat while the mouseDown = 0
  49.     end repeat
  50.     go(1, "oasquiz")
  51.     exit
  52.   end if
  53.   if (timeoption = 0) and (helpon = 0) then
  54.     set the visible of sprite 22 to 0
  55.     set the visible of sprite 23 to 0
  56.     set the visible of sprite 24 to 0
  57.     go("s")
  58.   end if
  59.   if timeoption = 1 then
  60.     set timeoption to 0
  61.     go(the frame)
  62.   end if
  63.   if helpon = 1 then
  64.     set helpon to 0
  65.     go(the frame)
  66.   end if
  67. end
  68.