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 cast1List to [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 115, 115, 115, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 114, 113, 114, 113, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 115, 115, 114, 113, 114, 115, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- set x1List to [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 103, 110, 118, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 260, 269, 275, 282, 290, 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 417, 429, 439, 450, 462, 476, 492, 508, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- set y1List to [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 238, 225, 208, 192, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 227, 216, 204, 191, 180, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 202, 187, 173, 161, 152, 149, 152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- set cast2List to [0, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 111, 110, 112, 112, 112, 112, 112, 112, 110, 111, 110, 110, 112, 112, 112, 110, 110, 110, 112, 112, 112, 110, 111, 110, 111, 110, 111, 110, 111, 110, 112, 112, 112, 112, 112, 112, 112, 110, 110, 112, 112, 110, 0]
- set x2List to [0, 97, 105, 113, 122, 132, 142, 153, 166, 179, 191, 199, 205, 211, 216, 223, 232, 245, 259, 271, 282, 292, 302, 313, 326, 341, 356, 367, 376, 383, 391, 399, 408, 421, 433, 442, 449, 454, 460, 468, 479, 493, 508, 522, 534, 545, 557, 569, 584, 601, 618, 631, 642, 652, 661, 671, 682, 695, 709, 720, 729, 737, 743, 749, 755, 761, 0]
- set y2List to [0, 191, 187, 182, 176, 170, 164, 160, 158, 159, 163, 171, 181, 191, 202, 210, 216, 217, 213, 205, 193, 181, 168, 157, 150, 148, 152, 161, 174, 189, 203, 215, 224, 227, 224, 215, 203, 189, 174, 161, 151, 146, 147, 152, 161, 172, 183, 193, 200, 203, 201, 196, 188, 179, 169, 160, 152, 147, 145, 145, 147, 150, 154, 158, 162, 164, 0]
- set cast3List to [0, 113, 114, 115, 115, 115, 115, 115, 115, 115, 115, 0, 0, 0, 0, 0, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 114, 0, 0, 0, 0, 0, 0, 113, 114, 115, 115, 115, 115, 115, 115, 115, 115, 0, 0, 0, 0, 0, 0, 0, 0, 115, 115, 115, 115, 115, 114, 113, 114, 113, 114, 113, 114, 113, 114, 113, 0]
- set x3List to [0, -20, -11, -2, 7, 18, 29, 41, 55, 70, 84, 0, 0, 0, 0, 0, 136, 150, 164, 176, 185, 194, 203, 212, 223, 237, 250, 0, 0, 0, 0, 0, 0, 312, 324, 334, 341, 348, 355, 363, 374, 389, 404, 0, 0, 0, 0, 0, 0, 0, 0, 520, 530, 539, 547, 557, 568, 582, 597, 610, 621, 631, 640, 648, 655, 663, 0]
- set y3List to [0, 137, 150, 165, 183, 201, 218, 233, 244, 249, 247, 0, 0, 0, 0, 0, 166, 161, 163, 171, 183, 197, 211, 224, 233, 237, 235, 0, 0, 0, 0, 0, 0, 168, 170, 178, 188, 200, 212, 222, 229, 230, 225, 0, 0, 0, 0, 0, 0, 0, 0, 160, 171, 184, 198, 212, 224, 233, 239, 241, 240, 238, 235, 232, 229, 228, 0]
- 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
- set maxFrames to 67
- 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 the dummyCast of theCoord
- set the castNum of sprite myChan2 to the dummyCast of theCoord
- set the castNum of sprite myChan3 to the dummyCast of theCoord
- RemoveBOL(theCoord, me)
- end if
- set currFrame to currFrame + 1
- end
-