home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / pc / tutorial / devglry / mcny / source / funhouse.dir / 00015.ls < prev    next >
Encoding:
Text File  |  1996-05-06  |  3.4 KB  |  91 lines

  1. on enterFrame
  2.   global gotkey, whichroom
  3.   puppetSprite(16, 1)
  4.   set whichroom to 8
  5.   if (the mouseH < the locH of sprite 16) and (the mouseV < the locV of sprite 16) then
  6.     set the locH of sprite 16 to the locH of sprite 16 - 1
  7.     set the locV of sprite 16 to the locV of sprite 16 - 1
  8.   else
  9.     if (the mouseH < the locH of sprite 16) and (the mouseV > the locV of sprite 16) then
  10.       set the locH of sprite 16 to the locH of sprite 16 - 1
  11.       set the locV of sprite 16 to the locV of sprite 16 + 1
  12.     else
  13.       if (the mouseH > the locH of sprite 16) and (the mouseV > the locV of sprite 16) then
  14.         set the locH of sprite 16 to the locH of sprite 16 + 1
  15.         set the locV of sprite 16 to the locV of sprite 16 + 1
  16.       else
  17.         if (the mouseH > the locH of sprite 16) and (the mouseV < the locV of sprite 16) then
  18.           set the locH of sprite 16 to the locH of sprite 16 + 1
  19.           set the locV of sprite 16 to the locV of sprite 16 - 1
  20.         else
  21.           if the mouseH > the locH of sprite 16 then
  22.             set the locH of sprite 16 to the locH of sprite 16 + 1
  23.           else
  24.             if the mouseH < the locH of sprite 16 then
  25.               set the locH of sprite 16 to the locH of sprite 16 - 1
  26.             else
  27.               if the mouseV < the locV of sprite 16 then
  28.                 set the locV of sprite 16 to the locV of sprite 16 - 1
  29.               else
  30.                 if the mouseV > the locV of sprite 16 then
  31.                   set the locV of sprite 16 to the locV of sprite 16 + 1
  32.                 end if
  33.               end if
  34.             end if
  35.           end if
  36.         end if
  37.       end if
  38.     end if
  39.   end if
  40.   if (the locH of sprite 16 < 200) and (the locV of sprite 16 < 63) then
  41.     set the locH of sprite 16 to the locH of sprite 16 + 1
  42.     set the locV of sprite 16 to the locV of sprite 16 + 1
  43.   else
  44.     if (the locH of sprite 16 > 208) and (the locV of sprite 16 < 63) then
  45.       set the locH of sprite 16 to the locH of sprite 16 - 1
  46.       set the locV of sprite 16 to the locV of sprite 16 + 1
  47.     else
  48.       if (the locH of sprite 16 > 208) and (the locV of sprite 16 > 67) then
  49.         set the locH of sprite 16 to the locH of sprite 16 - 1
  50.         set the locV of sprite 16 to the locV of sprite 16 - 1
  51.       else
  52.         if (the locH of sprite 16 < 200) and (the locV of sprite 16 > 67) then
  53.           set the locH of sprite 16 to the locH of sprite 16 + 1
  54.           set the locV of sprite 16 to the locV of sprite 16 - 1
  55.         else
  56.           if the locH of sprite 16 > 208 then
  57.             set the locH of sprite 16 to the locH of sprite 16 - 1
  58.           else
  59.             if the locH of sprite 16 < 200 then
  60.               set the locH of sprite 16 to the locH of sprite 16 + 1
  61.             else
  62.               if the locV of sprite 16 > 67 then
  63.                 set the locV of sprite 16 to the locV of sprite 16 - 1
  64.               else
  65.                 if the locV of sprite 16 < 63 then
  66.                   set the locV of sprite 16 to the locV of sprite 16 + 1
  67.                 end if
  68.               end if
  69.             end if
  70.           end if
  71.         end if
  72.       end if
  73.     end if
  74.   end if
  75.   if rollOver(5) and (gotkey = 0) and the mouseDown then
  76.     puppetSprite(20, 1)
  77.     set the locH of sprite 20 to 100
  78.     set the locV of sprite 20 to 120
  79.     set the ink of sprite 20 to 8
  80.     set the castNum of sprite 20 to 86
  81.   else
  82.     puppetSprite(20, 0)
  83.   end if
  84.   updateStage()
  85.   updateStage()
  86. end
  87.  
  88. on exitFrame
  89.   go("hall")
  90. end
  91.