Hey I need a code to make the shooting part of my cannon rotate. Ive got a MC called theCannon and then inside it a MC called base which is the bottom part and another one in theCannon called head which is the part that is gonna shoot out whatever bullet/laser/cannonball or whatever. An very good example is http://www.newgrounds.com/portal/view/305865.
Thanks in Advance.
:mu:
[EDIT]I forgot to mention I want it to rotate with the mouse.
if(Key.isDown(Key.RIGHT)){
this._rotate --;
}
if(Key.isDown(Key.LEFT)){
this._rotate ++;
}
// For shooting you’ll need physics
Oops sorry. I forgot to mention I want it to rotate with the mouse.
That should help you