home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 35
/
jogo-disk-35.iso
/
Games
/
red_beard.swf
/
scripts
/
DefineSprite_163
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-02-27
|
880b
|
25 lines
if(getProperty("_root.BackgroundMC", _X) + getProperty("_parent", _X) > 0 and getProperty("_root.BackgroundMC", _X) + getProperty("_parent", _X) < 450 and getProperty("_root.BackgroundMC", _Y) + getProperty("_parent", _Y) > 0 and getProperty("_root.BackgroundMC", _Y) + getProperty("_parent", _Y) < 300)
{
if(_parent.beastie.hittest(_root.playerMC))
{
set("_root.codeMC:enemyCol","on");
}
}
if(startup == null)
{
startx = getProperty("_parent", _X) + 1;
startup = "done";
}
if(getProperty("_parent", _X) < startx)
{
direction = eval("_parent._parent:beastieMove");
_parent.gotoAndStop(1);
}
distance = Number(_parent._name);
if(getProperty("_parent", _X) > startx + distance)
{
direction = - eval("_parent._parent:beastieMove");
_parent.gotoAndStop(2);
}
setProperty("_parent", _X, getProperty("_parent", _X) + direction);