3rd Person Shooter

Non-platform specific questions.

3rd Person Shooter

Postby barney12345 » Wed Nov 07, 2012 8:35 pm

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
Darth Vader called... he wants his cookies back
User avatar
barney12345
 
Posts: 122
Joined: Wed Nov 07, 2012 6:52 am
Location: A land down under
Score: 4 Give a positive score

Re: 3rd Person Shooter

Postby skydereign » Wed Nov 07, 2012 9:47 pm

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;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: 3rd Person Shooter

Postby barney12345 » Thu Nov 08, 2012 8:08 am

Thanks,
can some one post a good background please for my new game which is like the original gta plz
Darth Vader called... he wants his cookies back
User avatar
barney12345
 
Posts: 122
Joined: Wed Nov 07, 2012 6:52 am
Location: A land down under
Score: 4 Give a positive score

Re: 3rd Person Shooter

Postby Hblade » Fri Nov 23, 2012 12:40 am

Isn't this a duplicate post o.O?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: 3rd Person Shooter

Postby Soullem » Fri Nov 23, 2012 4:08 am

dont be silly, the other post is the duplicate. lol
Current Project:
The Project That needs to be Done -- Pokemon http://game-editor.com/forum/viewtopic.php?f=4&t=12591

Temporarily Abandoned:
Souls of Gustara -- Awesome upgrade blimp game 42%ish
Eggventures of Eggman -- Adventure Game 20%ish
User avatar
Soullem
 
Posts: 105
Joined: Thu Aug 02, 2012 3:12 pm
Score: 5 Give a positive score

Re: 3rd Person Shooter

Postby Hblade » Thu Nov 29, 2012 4:36 am

lol
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron