home *** CD-ROM | disk | FTP | other *** search
- property psaved, pcast, psp, pkate, pno, pleft, ptop
-
- on birth me, cate, no
- set the pcast of me to 0
- set the psp of me to 0
- set the pkate of me to cate
- set the pno of me to no
- set fshortname to getfname(the pno of me) & ".pic"
- set the pcast of me to the number of cast fshortname
- return me
- end
-
- on destroy me
- if 0 < the psp of me then
- puppetSprite(the psp of me, 0)
- end if
- updateStage()
- end
-
- on location me, sp, aleft, atop
- set the psaved of me to the puppet of sprite sp
- set the psp of me to sp
- set the pleft of me to aleft
- set the ptop of me to atop
- showx(me)
- end
-
- on hide me
- set the visible of sprite the psp of me to 0
- end
-
- on showx me
- puppetSprite(the psp of me, 1)
- set the visible of sprite the psp of me to 1
- set the castNum of sprite the psp of me to the pcast of me
- spriteBox(the psp of me, the pleft of me, the ptop of me, the pleft of me + 120, the ptop of me + 90)
- updateStage()
- end
-
- on show me
- set the visible of sprite the psp of me to 1
- end
-