home *** CD-ROM | disk | FTP | other *** search
- function pulseGo()
- {
- counter++;
- if(counter > lifeSpan_p)
- {
- this.onEnterFrame = null;
- this.destroy();
- }
- _Y = _Y - speed_p;
- for(name in _root.enemyArray)
- {
- if(hitTest(_root.enemyArray[name]) && _root.enemyArray[name].alive == true)
- {
- _root.enemyArray[name].gotoAndPlay("hit");
- }
- }
- }
- function destroy()
- {
- for(name in this)
- {
- delete this[name];
- }
- delete this;
- this.removeMovieClip();
- }
- stop();
- ship = _root.ship;
- ship.armed = false;
- speed_p = ship.shotSpeed;
- lifeSpan_p = ship.shotLifeSpan;
- damage_p = ship.shotDamage;
- counter = 0;
- this.onEnterFrame = pulseGo;
- process = "pulseGo";
-