Four-Directional shooter?

Get help using Construct 2

Post » Fri Feb 28, 2014 2:09 am

I have a code which spawns a bullet sprite at my player when a button is pressed but how do I make it so it shoots in the direction the player is facing at the time?
Thanks in advance.
B
4
S
1
Posts: 19
Reputation: 436

Post » Fri Feb 28, 2014 2:27 am

@mfusaro

You could try using "spawn another object" in your players events? as opposed to "system > create object"
I think will cause the bullet when spawned from the player to inherit the angle?..
B
9
S
2
Posts: 26
Reputation: 586

Post » Fri Feb 28, 2014 3:00 am

Ometheu wrote:@mfusaro

You could try using "spawn another object" in your players events? as opposed to "system > create object"
I think will cause the bullet when spawned from the player to inherit the angle?..


I just cant seem to get the projectile to spawn at the location of the player... any help?
B
4
S
1
Posts: 19
Reputation: 436

Post » Fri Feb 28, 2014 4:59 am

Can you upload a capx file buddy?

or, Are you spawning the bullet on the same layer as your player and or at the default imagepoint?

If it's a top down shooter you could look at constructs built in template "top-down shooter" for an example of the code by going file > New > Template... etc..
B
9
S
2
Posts: 26
Reputation: 586


Return to How do I....?

Who is online

Users browsing this forum: dop2000, WanderingHatred and 7 guests