So I am currently in a grade 10 video game design class, and we are using Flash CS4 AS2. The game I am currently working on has the player rotate a turret, and shoot the soldiers heading towards the bottom of the screen. I have it so the turret rotates properly, but it still shoots out of the top of the turret, regrdless of where the barrel is aimed. I was told that there is code to change it, but I am quite new to Flash, and I have been unable to find help anywhere else. If anyone knows how to fix this issue, please respond.
I can help you, but I need to see the project, you can upload to Dropbox, if you want to send the link by private message
this._x += Math.cos(this._rotation*Math.PI/180);
this._y += Math.sin(this._rotation*Math.PI/180);
It makes 'this' move in the direction it is facing (may have to -90 from the rotation).