mouse shooting question

Non-platform specific questions.

mouse shooting question

Postby 1dom18 » Thu Aug 05, 2010 9:50 pm

How do you make a bullet shoot in the direction of where i clicked with my mouse?
1dom18
 
Posts: 22
Joined: Thu Jul 19, 2007 9:44 pm
Score: 1 Give a positive score

Re: mouse shooting question

Postby rykein » Thu Aug 05, 2010 10:06 pm

In the bullet's create.
Code: Select all
angle=direction(x-view.x,y-view.y,xmouse,ymouse);
directional_velocity=10;
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 6 Give a positive score

Re: mouse shooting question

Postby 1dom18 » Thu Aug 05, 2010 10:29 pm

i need the bullet to come out of the player though i have on the player>>mouse button up>>left click>>create acter bullet
but the bullet never actual comes out of the player
1dom18
 
Posts: 22
Joined: Thu Jul 19, 2007 9:44 pm
Score: 1 Give a positive score

Re: mouse shooting question

Postby 1dom18 » Thu Aug 05, 2010 11:13 pm

when i click around in the filled rgion it dosent not work even clicking the character dosent fire anything but when outside the region it shoots towards the filled region
1dom18
 
Posts: 22
Joined: Thu Jul 19, 2007 9:44 pm
Score: 1 Give a positive score

Re: mouse shooting question

Postby krenisis » Fri Aug 06, 2010 12:33 am

Hello to both and welcome to Game Editor. I have made 6 tutorials and one on shooting alone. Just click on the link that says tutorial database and you will find answers to your questions in easy to use format. If my tutorials helped you please hit the point button. If there is any question that my tutorial hasnt answered , i will gladly answer it for you. Enjoy!!
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron