home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- puppetSprite(44, 1)
- puppetSprite(45, 1)
- puppetSprite(46, 1)
- set theFrames to "11,17,23,29,35,41,47"
- set theTriangle to "1,5,9,13"
- set mh to the mouseH
- set sph to the locH of sprite the clickOn
- set whTriangle to ((mh - sph) / 27) + 1
- repeat with n = 1 to 7
- if the frame = item n of theFrames then
- set whFrame to n
- exit repeat
- end if
- end repeat
- repeat with n = 1 to 4
- if whTriangle = value(item n of theTriangle) then
- set whTriangleB to n
- end if
- end repeat
- set whCast to (whFrame * 4) + whTriangleB + 856
- if voidp(whTriangleB) or (whTriangleB > 4) then
- nothing()
- else
- clearLists()
- set the castNum of sprite 44 to 889
- set the locH of sprite 44 to 386
- set the locV of sprite 44 to 253
- set the castNum of sprite 45 to whCast
- set the locH of sprite 45 to 213
- set the locV of sprite 45 to 242
- set the castNum of sprite 46 to whCast - 30
- put EMPTY before line 1 of field (whCast - 30)
- set the locH of sprite 46 to 132
- set the locV of sprite 46 to 267
- end if
- end
-