home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Acao
/
synj_sneak_attack.swf
/
scripts
/
DefineSprite_171
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-10-06
|
723b
|
15 lines
_parent._x -= _parent.speed;
if(_parent._x < -50)
{
_parent.gotoAndStop("nada");
}
if((_root.synj._y - 100 < _parent._y && _parent._y < _root.synj._y + 100 || _root.synj.attack_high == true) && (_root.synj._x < _parent._x && _parent._x < _root.synj._x + 280 && 0 < _root.synj._xscale || _parent._x < _root.synj._x && _parent._x < _root.synj._x - 280 && _root.synj._xscale < 0) && _root.synj.dodamage == true)
{
_parent.gotoAndStop("die");
}
if(_root.fireball._x - 50 < _parent._x && _parent._x < _root.fireball._x + 50 && (_root.fireball._y - 80 < _parent._y && _parent._y < _root.fireball._y + 80) && _root.fireball._currentFrame == 1)
{
_root.fireball.ball.play();
_parent.gotoAndStop("die");
}