home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / w_puzzle.dir / 00087.ls < prev    next >
Encoding:
Text File  |  1994-12-05  |  900 b   |  27 lines

  1. on mouseDown
  2.   global rpictblock
  3.   if the castNum of sprite clickOn() <> 1 then
  4.     if the castNum of sprite 48 = 0 then
  5.       set the castNum of sprite 48 to the castNum of sprite clickOn()
  6.       set the castNum of sprite clickOn() to 1
  7.       setAt(rpictblock, clickOn() - 1, 1)
  8.       repeat with i = 2 to 42
  9.         set the cursor of sprite i to 0
  10.       end repeat
  11.     else
  12.       set cnumkeep to the castNum of sprite 48
  13.       set the castNum of sprite 48 to the castNum of sprite clickOn()
  14.       set the castNum of sprite clickOn() to cnumkeep
  15.       setAt(rpictblock, clickOn() - 1, cnumkeep)
  16.       rightcheck()
  17.     end if
  18.   else
  19.     if the castNum of sprite 48 <> 0 then
  20.       set the castNum of sprite clickOn() to the castNum of sprite 48
  21.       set the castNum of sprite 48 to 0
  22.       setAt(rpictblock, clickOn() - 1, the castNum of sprite clickOn())
  23.       rightcheck()
  24.     end if
  25.   end if
  26. end
  27.