home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 25 / CDMM_25.iso / takeru / g078 / jail.dxr / Internal_56.ls < prev    next >
Encoding:
Text File  |  1996-09-04  |  1.5 KB  |  51 lines

  1. on mouseDown
  2.   set the castNum of sprite 45 to 102
  3.   updateStage()
  4.   puppetSound(2, 304)
  5.   repeat while the stillDown
  6.     set mymouseh to the mouseH
  7.     set mymousev to the mouseV
  8.     set the locH of sprite 10 to mymouseh
  9.     set the locV of sprite 10 to mymousev
  10.     set the locH of sprite 45 to mymouseh
  11.     set the locV of sprite 45 to mymousev
  12.     updateStage()
  13.     if the locH of sprite 10 > 390 then
  14.       set the castNum of sprite 12 to 125
  15.     else
  16.       if the locH of sprite 10 > 380 then
  17.         set the castNum of sprite 12 to 126
  18.       else
  19.         if the locH of sprite 10 > 330 then
  20.           set the castNum of sprite 12 to 127
  21.         else
  22.           if the locH of sprite 10 > 311 then
  23.             set the castNum of sprite 12 to 128
  24.           else
  25.             set the castNum of sprite 12 to 129
  26.             if the locV of sprite 21 = 226 then
  27.               set the constraint of sprite 10 to 0
  28.               set the constraint of sprite 21 to 0
  29.               set the constraint of sprite 17 to 0
  30.               set the constraint of sprite 24 to 0
  31.               set the constraint of sprite 19 to 0
  32.               puppetSprite(12, 0)
  33.               puppetSprite(10, 0)
  34.               puppetSprite(24, 0)
  35.               puppetSprite(21, 0)
  36.               puppetSprite(17, 0)
  37.               puppetSprite(19, 0)
  38.               puppetSound(2, 0)
  39.               puppetSprite(40, 0)
  40.               go("hooked")
  41.               exit repeat
  42.             end if
  43.           end if
  44.         end if
  45.       end if
  46.     end if
  47.     updateStage()
  48.   end repeat
  49.   puppetSound(2, 0)
  50. end
  51.