home *** CD-ROM | disk | FTP | other *** search
/ PC Open 10 / pcopen10.iso / aaron / dida / sequenz.dxr / 00016.ls < prev    next >
Encoding:
Text File  |  1997-09-24  |  1.5 KB  |  54 lines

  1. on enterFrame
  2.   global larghezza, altezza, parlata, puzzle, chisono, msprite
  3.   set larghezza to the mouseH
  4.   set altezza to the mouseV
  5.   if chisono <> 5 then
  6.     checkSALVA()
  7.   end if
  8.   pulsante()
  9.   if parlata then
  10.     if not soundBusy(1) then
  11.       repeat with i = 37 to 39
  12.         puppetSprite(i, 1)
  13.         set the moveableSprite of sprite i to 1
  14.       end repeat
  15.       set parlata to 0
  16.     end if
  17.   end if
  18.   if puzzle then
  19.     Sequenza()
  20.     repeat with i = 13 to 16
  21.       puppetSprite(i, 1)
  22.       set the moveableSprite of sprite i to 0
  23.     end repeat
  24.     if (larghezza > 109) and (larghezza < 475) and (altezza > 77) and (altezza < 404) then
  25.       updateStage()
  26.       pulsante()
  27.       puppetSprite(48, 1)
  28.       set the moveableSprite of sprite 48 to 1
  29.       if the mouseDown or the stillDown then
  30.         set the loc of sprite 48 to point(larghezza, altezza)
  31.         if msprite <> 0 then
  32.           if sprite 48 intersects msprite then
  33.             set the memberNum of sprite 48 to the memberNum of sprite msprite
  34.             set the rect of sprite 48 to the rect of sprite msprite
  35.             set the visible of sprite 48 to 1
  36.             set the visible of sprite msprite to 0
  37.           end if
  38.         end if
  39.       end if
  40.     else
  41.       set the loc of sprite 48 to point(771, 0)
  42.       puppetSprite(48, 0)
  43.       set the visible of sprite 48 to 0
  44.       set the visible of sprite msprite to 1
  45.       updateStage()
  46.       set msprite to 0
  47.     end if
  48.   end if
  49. end
  50.  
  51. on exitFrame
  52.   go(the frame)
  53. end
  54.