home *** CD-ROM | disk | FTP | other *** search
- _parent._x += _parent.speed;
- if(_parent._x < -70 && _parent._name == "gnome")
- {
- _parent._x = 1000 + random(500);
- _parent.body.type.gotoAndStop(random(_parent.body.type._totalFrames) + 1);
- if(random(3) == 1 && _root.gnome2._x < -70)
- {
- _root.gnome2._x = _root.gnome._x + 180;
- _root.gnome2.gotoAndStop(1);
- _root.gnome2.body.type.gotoAndStop(random(_root.gnome2.body.type._totalFrames) + 1);
- }
- }
- if((_root.synj._y - 100 < _parent._y && _parent._y < _root.synj._y + 200 && _root.synj.attack_low == true || _root.synj._y - 100 < _parent._y && _parent._y < _root.synj._y + 40 && _root.synj.attack_low != true && _root.synj.attack_high != true) && (_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.dodamage == true)
- {
- if(_parent.body.type._currentFrame != 4)
- {
- _parent.gotoAndStop("die");
- }
- else
- {
- _parent.body.type.sparks.play();
- }
- }
- if(_root.fireball._x - 50 < _parent._x && _parent._x < _root.fireball._x + 50 && (_root.fireball._y - 100 < _parent._y && _parent._y < _root.fireball._y + 100))
- {
- _root.fireball.ball.play();
- if(_parent.body.type._currentFrame != 4)
- {
- _parent.gotoAndStop("die");
- }
- }
- if(_root.synj._x - 140 < _parent._x && _parent._x < _root.synj._x + 140 && (_root.synj._y - 80 < _parent._y && _parent._y < _root.synj._y + 80) && _root.synj.hurt != true && _parent.dodamage == true)
- {
- _root.synj_hurt();
- _root.life--;
- }
-