home *** CD-ROM | disk | FTP | other *** search
- _root.enemybullet.duplicateMovieClip("enemybullet" + _root.depth,_root.depth);
- _root["enemybullet" + _root.depth].offx = _parent.gun._x * Math.cos(_parent._parent._rotation * 3.141592653589793 / 180);
- _root["enemybullet" + _root.depth].offy = _parent.gun._x * Math.sin((- _parent._parent._rotation) * 3.141592653589793 / 180);
- _root["enemybullet" + _root.depth]._x = _parent._parent._x + _parent._x + _root["enemybullet" + _root.depth].offx;
- _root["enemybullet" + _root.depth]._y = _parent._parent._y + _parent._y - _root["enemybullet" + _root.depth].offy;
- _root["enemybullet" + _root.depth].gotoAndStop("boss3");
- _root["enemybullet" + _root.depth].shottype = "enemy";
- _root["enemybullet" + _root.depth].enemyshottype = "boss3";
- _root["enemybullet" + _root.depth].diffx = _root["enemybullet" + _root.depth]._x - (_root.ship._x + _root.ship.shipmc._x);
- _root["enemybullet" + _root.depth].diffy = _root["enemybullet" + _root.depth]._y - (_root.ship._y + _root.ship.shipmc._y);
- _root["enemybullet" + _root.depth].angle = Math.atan2(_root["enemybullet" + _root.depth].diffy,_root["enemybullet" + _root.depth].diffx);
- _root["enemybullet" + _root.depth].xvalue = -8 * Math.cos(_root["enemybullet" + _root.depth].angle);
- _root["enemybullet" + _root.depth].yvalue = -8 * Math.sin(_root["enemybullet" + _root.depth].angle);
- _root.bulletarray[_root.bulletarray.length] = _root["enemybullet" + _root.depth];
- _root["enemybullet" + _root.depth].follow = 0;
- if(_root.depth < 10000)
- {
- _root.depth = _root.depth + 1;
- }
- else
- {
- _root.depth = 33;
- }
-