3rd Person Shooter

OK, I know i'm new at this but can someone help me with making a code for rotating a character depending on where the mouse is. Also for how to get bullets to go in the direction of the mouse
barney12345 wrote:OK, I know i'm new at this but can someone help me with making a code for rotating a character depending on where the mouse is
barney12345 wrote:Also for how to get bullets to go in the direction of the mouse
angle = direction(xscreen, yscreen, xmouse, ymouse);
directional_velocity = 15;