Page 1 of 1

3rd Person Shooter

PostPosted: Wed Nov 07, 2012 8:35 pm
by barney12345
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

Re: 3rd Person Shooter

PostPosted: Wed Nov 07, 2012 9:47 pm
by skydereign
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

There are quite a few tutorials/posts on this already. You might try looking here. http://game-editor.com/Rotation
The current version of gE doesn't have built in rotation, so for now you need to rotate your sprites, and set animpos to the angle you want.

barney12345 wrote:Also for how to get bullets to go in the direction of the mouse

bullet -> Create actor -> Script Editor
Code: Select all
angle = direction(xscreen, yscreen, xmouse, ymouse);
directional_velocity = 15;

Re: 3rd Person Shooter

PostPosted: Thu Nov 08, 2012 8:08 am
by barney12345
Thanks,
can some one post a good background please for my new game which is like the original gta plz

Re: 3rd Person Shooter

PostPosted: Fri Nov 23, 2012 12:40 am
by Hblade
Isn't this a duplicate post o.O?

Re: 3rd Person Shooter

PostPosted: Fri Nov 23, 2012 4:08 am
by Soullem
dont be silly, the other post is the duplicate. lol

Re: 3rd Person Shooter

PostPosted: Thu Nov 29, 2012 4:36 am
by Hblade
lol