home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / synj_sneak_attack.swf / scripts / DefineSprite_156 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-10-06  |  892 b   |  19 lines

  1. if(_parent._x < -200)
  2. {
  3.    _parent.gotoAndStop("nada");
  4. }
  5. if(_root.synj._x - 200 < _parent._x && _parent._x < _root.synj._x + 200 && (_root.synj._y - 80 < _parent._y && _parent._y < _root.synj._y + 80) && _root.synj.hurt != true)
  6. {
  7.    _root.synj_hurt();
  8.    _root.life--;
  9. }
  10. if(_root.synj._y - 100 < _parent._y && _parent._y < _root.synj._y + 150 && (_root.synj._x < _parent._x && _parent._x < _root.synj._x + 300 && 0 < _root.synj._xscale || _parent._x < _root.synj._x && _parent._x < _root.synj._x - 300 && _root.synj._xscale < 0) && _root.synj.attack_high != true && _root.synj.dodamage == true)
  11. {
  12.    _parent.play();
  13. }
  14. if(_root.fireball._x - 100 < _parent._x && _parent._x < _root.fireball._x + 100 && (_root.fireball._y - 150 < _parent._y && _parent._y < _root.fireball._y + 150) && _root.fireball._currentFrame == 1)
  15. {
  16.    _root.fireball.ball.play();
  17.    _parent.play();
  18. }
  19.