home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / w_puzzle.dir / 00084.ls < prev    next >
Encoding:
Text File  |  1994-12-05  |  1.0 KB  |  31 lines

  1. on mouseDown
  2.   global cpictblock
  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(cpictblock, 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(cpictblock, clickOn() - 1, cnumkeep)
  16.       repeat with i = 2 to 42
  17.         set the cursor of sprite i to [243, 244]
  18.       end repeat
  19.     end if
  20.   else
  21.     if the castNum of sprite 48 <> 0 then
  22.       set the castNum of sprite clickOn() to the castNum of sprite 48
  23.       set the castNum of sprite 48 to 0
  24.       setAt(cpictblock, clickOn() - 1, the castNum of sprite clickOn())
  25.       repeat with i = 2 to 42
  26.         set the cursor of sprite i to [243, 244]
  27.       end repeat
  28.     end if
  29.   end if
  30. end
  31.