How do I add top down shooting

Get help using Construct 2

Post » Fri Aug 15, 2014 10:14 pm

i know how to do it with a ROTATING player sprite but what if theres a static player sprite that does not rotate and rotating its image point where to spawn the bullet to chase the position where the cursor was when the left mouse button was clicked?

i tried this : Image

but as you can see here : http://www.burningcake.com/test/index.html
its not working good .(just move to a corner and shoot down)
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Fri Aug 15, 2014 10:29 pm

why set the gun towards the mouse?
you could just set the bullet angle towards the mouse, right?
I'm not sure what is causing the bullets to be off, but it might have to do with the layer, using mouse.x(0) and mouse.y(0) would solve that in that case..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Aug 15, 2014 10:43 pm

burningcake wrote:... and rotating its image point where to spawn the bullet to chase the position where the cursor was when the left mouse button was clicked?


I don't get this part, but from your example I deduce that you want something like this.

-Edit--> as LittleStain also points out...
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
68
S
26
G
4
Posts: 1,146
Reputation: 9,649

Post » Sat Aug 16, 2014 9:05 am

you guys rock , thanks for the rapid solution !
B
27
S
7
G
3
Posts: 299
Reputation: 4,551


Return to How do I....?

Who is online

Users browsing this forum: marcinkowski, R0J0hound and 3 guests