home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Review 28
/
Creative-Review-CD-ROM-28.iso
/
mac
/
kungfu
/
style.dir
/
00005_Script_5
< prev
next >
Wrap
Text File
|
1997-08-08
|
1KB
|
64 lines
-- figure Anim
global gFigList
global gFigEntry
on hinitFigure
set gFigEntry = 1
set gFigList = []
set basein = 0
repeat with a = 2 to the number of lines in field "figure data"
set currentlist = [:]
addprop currentlist , #chan , the value of word 1 of line a of field "figure data"
addprop currentlist , #in , the value of word 2 of line a of field "figure data"
addprop currentlist , #out , the value of word 3 of line a of field "figure data"
add gFigList currentlist
end repeat
repeat with a = 1 to count (gFigList)
set currentList = getat (gFigList,a)
set Thechan = the chan of currentList
set TheIn = the in of currentList
puppetsprite Thechan,true
set the castNum of sprite thechan to theIn + basein
set the loch of sprite thechan to 560
set basein = basein + 1
end repeat
end
on hupdateFigure
set currentList = getat (gFigList,gFigEntry)
set Thechan = the chan of currentList
set TheOut = the out of currentList
set the castNum of sprite Thechan to the castNum of sprite Thechan + 1
if the castNum of sprite Thechan > TheOut then
set TheIn = the in of currentList
set the castNum of sprite Thechan to theIn
end if
set gFigEntry = gFigEntry + 1
if gFigEntry > count(gFigList) then set gFigEntry = 1
end