home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Aventura
/
pendekar.swf
/
scripts
/
DefineSprite_53_oWeaponKipas
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-05-08
|
470b
|
34 lines
function init()
{
if(runOnce)
{
return undefined;
}
this.runOnce = true;
this.id = 3;
this.hp = 1;
this.dir = 1;
this.hitable = false;
this.level = _Y;
this.nLevel = _Y;
if(intro)
{
intro = false;
gotoAndStop(31);
}
}
function dirValue(number)
{
return dir * number;
}
function getHit()
{
hp--;
if(hp <= 0)
{
gotoAndStop(32);
}
}
his.onLoad = init();
stop();