the torpedos should be coming out of the turret but they are coming out of the the middle of nowhere… hard to explain so plz look at the .fla…
you had the right idea when you replaced the this._rotation with _root.s1.s2.turret._rotation. unfortunately you didn’t need to change it there. but you do need change it later on. the this._x value returns a value from the registration point of the turret’s parent, s2. you need to change:
_root.torpedo.duplicateMovieClip("lazer"+e, e);
_root["lazer"+e]._rotation = this._rotation;
_root["lazer"+e]._x = this._x;
_root["lazer"+e]._y = this._y;
… to …
_root.torpedo.duplicateMovieClip("lazer"+e, e);
_root["lazer"+e]._rotation = _root.s1.s2.turret._rotation;
_root["lazer"+e]._x = this._x + _root.s1._x + _root.s1.s2._x;
_root["lazer"+e]._y = this._y + _root.s1._y + _root.s1.s2._y;
and there you go
I did notice that this stops working later on, and the torpedoes are fired in the same direction, regardless of where the shark is.
i think this is because the movement of the submarine is tweened. actionscripting it’s movement should resolve your problems here.
yes it fired one at the shark and the rest in one direction, i removed the motion tween and put AS to move it and still fired in one direciton. i made the sub stay in one spot and not move and still the same thing. maybe its the code?
argh can someone help me, i really want to finish my game :-\