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

  1. on exitFrame
  2.   global cpictblock, leftable, rightable
  3.   repeat with i = 1 to 40
  4.     puppetSprite(i + 1, 1)
  5.     if (getAt(cpictblock, i) <= 30) and leftable then
  6.       set the castNum of sprite (i + 1) to getAt(cpictblock, i)
  7.       next repeat
  8.     end if
  9.     if (getAt(cpictblock, i) >= 31) and rightable then
  10.       set the castNum of sprite (i + 1) to getAt(cpictblock, i)
  11.     end if
  12.   end repeat
  13.   if leftable and rightable then
  14.     repeat with i = 2 to 42
  15.       set the cursor of sprite i to [243, 244]
  16.     end repeat
  17.     go(label("center") + 1)
  18.   end if
  19. end
  20.