home *** CD-ROM | disk | FTP | other *** search
/ PC Open 10 / pcopen10.iso / aaron / dida / componi.dxr / 00060_pesce3.ls < prev    next >
Encoding:
Text File  |  1997-09-24  |  804 b   |  31 lines

  1. on mouseUp
  2.   global altezza, larghezza, messi2, DOVE
  3.   if (larghezza < 99) or (larghezza > 444) or (altezza < 78) or (altezza > 342) then
  4.     if (larghezza > 234) and (larghezza < 428) and (altezza > 381) and (altezza < 481) then
  5.       set the visible of sprite 27 to 0
  6.       Buttare()
  7.       set c to getPos(messi2, 27)
  8.       if c <> 0 then
  9.         deleteAt(messi2, c)
  10.       end if
  11.       set the loc of sprite 27 to point(536, 197)
  12.     else
  13.       set the loc of sprite 27 to DOVE
  14.       if getPos(messi2, 27) = 0 then
  15.         append(messi2, 27)
  16.       end if
  17.     end if
  18.   else
  19.     if getPos(messi2, 27) = 0 then
  20.       append(messi2, 27)
  21.     end if
  22.   end if
  23. end
  24.  
  25. on mouseDown
  26.   global DOVE, larghezza, altezza
  27.   set larghezza to the mouseH
  28.   set altezza to the mouseV
  29.   set DOVE to the loc of sprite 27
  30. end
  31.