home *** CD-ROM | disk | FTP | other *** search
- function hitCheck()
- {
- if(hitTest(_root.ship) && _root.ship.alive == true && alive == true)
- {
- clearInterval(hitCheckInterval);
- _root.ship.gotoAndPlay("die");
- gotoAndPlay(15);
- }
- }
- function fire()
- {
- if(Math.random() < firePercent)
- {
- shoot();
- clearInterval(fireInterval);
- }
- }
- function shoot()
- {
- _root.layer = _root.layer + 1;
- _root.attachMovie("fighterShot","fighterShot" + _root.layer,_root.layer);
- _root["fighterShot" + _root.layer]._x = this._x;
- _root["fighterShot" + _root.layer]._y = this._y;
- _root.layer = _root.layer + 1;
- }
- function destroy()
- {
- clearInterval(hitCheckInterval);
- clearInterval(fireInterval);
- for(name in this)
- {
- delete this[name];
- }
- delete this;
- this.removeMovieClip();
- }
- stop();
- process = "goFunct";
- PUprob = 0.2;
- worth = 200;
- firePercent = _root.currentWave.shotProb;
- count = 0;
- Hspeed = 4;
- Vspeed = 25;
- alive = true;
-