home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Aventura
/
pendekar.swf
/
scripts
/
DefineSprite_87_oPole
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-05-08
|
529b
|
34 lines
function init()
{
if(runOnce)
{
return undefined;
}
this.runOnce = true;
this.hp = 30;
this.dir = 1;
this.hitable = true;
this.level = _Y;
this.nLevel = _Y;
this.charName = "Pole";
if(intro)
{
intro = false;
}
}
function dirValue(number)
{
return dir * number;
}
function getHit(power)
{
if(power == undefined)
{
power = 0;
}
hp -= power;
gotoAndStop(hp <= 0 ? "oPoleBreak" : "oPoleHit");
}
this.onLoad = init();
stop();