home *** CD-ROM | disk | FTP | other *** search
- onEnterFrame = function()
- {
- if(!setAll)
- {
- 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 - 1;
- _rotation = (- vSpeed) * 5;
- if(_Y >= 110 && health <= 0 && !dead)
- {
- _root.makeSplash(_X,200);
- dead = true;
- _root.score += 25;
- }
- if(_Y > 200 || _X < -100 || _X > 1000)
- {
- _root.baddyMax = _root.baddyMax + 1;
- this.removeMovieClip();
- }
- };
-