Page 1 of 1

mouse shooting question

PostPosted: Thu Aug 05, 2010 9:50 pm
by 1dom18
How do you make a bullet shoot in the direction of where i clicked with my mouse?

Re: mouse shooting question

PostPosted: Thu Aug 05, 2010 10:06 pm
by rykein
In the bullet's create.
Code: Select all
angle=direction(x-view.x,y-view.y,xmouse,ymouse);
directional_velocity=10;

Re: mouse shooting question

PostPosted: Thu Aug 05, 2010 10:29 pm
by 1dom18
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

Re: mouse shooting question

PostPosted: Thu Aug 05, 2010 11:13 pm
by 1dom18
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

Re: mouse shooting question

PostPosted: Fri Aug 06, 2010 12:33 am
by krenisis
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!!