home *** CD-ROM | disk | FTP | other *** search
- property myChan1, myChan2, myChan3, maxFrames, currFrame, cast1List, x1List, y1List, cast2List, x2List, y2List, cast3List, x3List, y3List, cast1Index, cast2Index, cast3Index
- global theCoord
-
- on birth me, chan1, chan2, chan3
- set myChan1 to chan1
- set myChan2 to chan2
- set myChan3 to chan3
- puppetSprite(myChan1, 1)
- puppetSprite(myChan2, 1)
- puppetSprite(myChan3, 1)
- set the stretch of sprite myChan1 to 0
- set the stretch of sprite myChan2 to 0
- set the stretch of sprite myChan3 to 0
- return me
- end
-
- on startAnimation me
- set currFrame to 1
- end
-
- on Animate me
- if currFrame <= maxFrames then
- set cast1Index to getAt(cast1List, currFrame)
- set cast2Index to getAt(cast2List, currFrame)
- set cast3Index to getAt(cast3List, currFrame)
- set the locH of sprite myChan1 to getAt(x1List, currFrame)
- set the locV of sprite myChan1 to getAt(y1List, currFrame)
- set the castNum of sprite myChan1 to cast1Index
- set the locH of sprite myChan2 to getAt(x2List, currFrame)
- set the locV of sprite myChan2 to getAt(y2List, currFrame)
- set the castNum of sprite myChan2 to cast2Index
- set the locH of sprite myChan3 to getAt(x3List, currFrame)
- set the locV of sprite myChan3 to getAt(y3List, currFrame)
- set the castNum of sprite myChan3 to cast3Index
- end if
- if currFrame > maxFrames then
- set the castNum of sprite myChan1 to 0
- set the castNum of sprite myChan2 to 0
- set the castNum of sprite myChan3 to 0
- RemoveBOL(theCoord, me)
- end if
- set currFrame to currFrame + 1
- end
-