home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / time_capsule / emaki / m0.dcr / 00015.ls < prev    next >
Encoding:
Text File  |  2017-09-21  |  847 b   |  27 lines

  1. on dragsprite
  2.   puppetSprite(clickOn(), 1)
  3.   set mh to mouseH() - the locH of sprite clickOn()
  4.   if the locH of sprite 1 = 1314 then
  5.     set the locH of sprite 1 to 1313
  6.   else
  7.     nothing()
  8.   end if
  9.   repeat while stillDown()
  10.     if (the locH of sprite 1 < 1314) and (the locH of sprite 1 > -1151) then
  11.       set the castNum of sprite 5 to the number of cast "bow"
  12.       set the locH of sprite clickOn() to mouseH() - mh
  13.       updateStage()
  14.       next repeat
  15.     end if
  16.     if (the locH of sprite 1 = 1314) or (the locH of sprite 1 > 1314) then
  17.       set the locH of sprite 1 to 1314
  18.       puppetSprite(5, 1)
  19.       set the castNum of sprite 5 to the number of cast "bowb"
  20.       next repeat
  21.     end if
  22.     if (the locH of sprite 1 = -1151) or (the locH of sprite 1 < -1151) then
  23.       set the locH of sprite 1 to -1151
  24.     end if
  25.   end repeat
  26. end
  27.