home *** CD-ROM | disk | FTP | other *** search
/ Gamer's Paradise: Logic / Hracuv-raj_Logicke-hry_cd1.bin / QUESTCAM / EGG.DIR / 00112.ls < prev    next >
Encoding:
Text File  |  1998-02-26  |  1.0 KB  |  28 lines

  1. on clickObject
  2.   global draggin, dragChan, objsChan, objsList, selectedSprite, oldtoyloc, lastSelectedSprite, musicBoxChan, danceFever, whichanim, brellaSprite, fosgailte, UmbrellaFirst, thefist
  3.   if draggin = 0 then
  4.     cursor([thefist, thefist + 1])
  5.     set draggin to 1
  6.     if selectedSprite > 0 then
  7.       set lastSelectedSprite to selectedSprite
  8.     end if
  9.     set copan to the clickOn
  10.     set selectedSprite to copan
  11.     puppetSprite(dragChan, 1)
  12.     if copan > objsChan then
  13.       set the memberNum of sprite dragChan to the memberNum of sprite selectedSprite
  14.     else
  15.       set brellaSprite to selectedSprite
  16.       if fosgailte = 0 then
  17.         set the memberNum of sprite dragChan to UmbrellaFirst + 1
  18.       else
  19.         set the memberNum of sprite dragChan to UmbrellaFirst + 3
  20.       end if
  21.     end if
  22.     set the locH of sprite dragChan to the mouseH
  23.     set the locV of sprite dragChan to the mouseV
  24.     set oldtoyloc to the loc of sprite selectedSprite
  25.     set the locH of sprite selectedSprite to 2000
  26.   end if
  27. end
  28.