home *** CD-ROM | disk | FTP | other *** search
- onEnterFrame = function()
- {
- if(!setAll)
- {
- _X = -50;
- _Y = -50;
- health = 8;
- vSpeed = 0;
- setAll = true;
- }
- if(health > 0 && this.area.hitTest(_root.player.area))
- {
- health = 0;
- _root.player.health = 0;
- }
- _X = _X - _root.player.hSpeed;
- if(health <= 0)
- {
- vSpeed++;
- if(!exploded)
- {
- _root.explode(2,_X,_Y);
- exploded = true;
- }
- }
- _Y = _Y + vSpeed;
- _X = _X + 2;
- if(_Y >= 110 && health <= 0 && !dead)
- {
- _root.makeSplash(_X,200);
- dead = true;
- _root.score += 35;
- }
- if(_Y > 200 || _X > 1000 || _X <= -100)
- {
- _root.leftSideShip = false;
- this.removeMovieClip();
- }
- };
-