hello everyone,hope you can help me with this,
i want to work on a shooting game,and i already have a code for the rotation of the image but i have a few problem
First problem(for the tank /ship):
i want the image to AUTOMATICALLY rotate facing the mouse cursor,i know how to rotate but but i dont know how to convert the location of the mouse to an angle that the image will face,,
Second problem(for the bullets):
is there a simple code for an image to move from point A to point B like (50,29) to (77,55) ,,or just shoot the bullet from the tank to the angle that its facing,,
Hope you can help me,,Thanks to everyone who will read and reply..:)