home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / dan256.dir / 00437_Script_437 < prev    next >
Text File  |  1995-11-10  |  955b  |  41 lines

  1. on mouseDown
  2.   
  3.   put clickOn() into vSpriteNum
  4.   
  5.   set the cursor of sprite vSpriteNum = 290
  6.   
  7.   put mouseH() into mh -- δ┤╟╡╟²
  8.   put mouseV() into mv -- δ┤╟╡╟²
  9.   
  10.   if not the puppet of sprite vSpriteNum then 
  11.     puppetSprite vSpriteNum, TRUE
  12.   end if
  13.   
  14.   repeat while stillDown()
  15.     if mouseH() <> mh or mouseV() <> mv then 
  16.       set the locH of sprite vSpriteNum = mouseH()
  17.       set the locV of sprite vSpriteNum = mouseV()
  18.     end if   
  19.     updatestage
  20.   end repeat
  21.   
  22.   repeat with n = 14 to 17
  23.     if sprite vSpriteNum intersects n then   
  24.       set the locH of sprite vSpriteNum to the locH of sprite n
  25.       set the locV of sprite vSpriteNum to the locV of sprite n
  26.     end if 
  27.   end repeat
  28.   
  29.   repeat with n = 19 to 22
  30.     if vSpriteNum = n then  
  31.       next repeat     
  32.     else
  33.       if sprite vSpriteNum intersects n then puppetSprite n,FALSE
  34.     end if
  35.   end repeat
  36.   
  37.   updatestage
  38.   
  39. end  
  40.  
  41.