[AS3] Calculating angle for shooting bullets
This is what im trying to do:
I have a character in middle of the screen that I can move around. The idea is that I can aim with the mouse, so wherever the mouse is pointing the character will shot a bullet in that direction until its out of the screen.
I've done the maths before where I had the rotation and I could calculate how to move an object depending on the actual rotation value. But how would I do this if I only have the Cords of my character and the mouseX and mouseY cords of where I just clicked?
Last edited by bastrix; 12-09-2010 at 03:32 PM.