Angled Bullet Shots

Get help using Construct 2

Post » Sat Aug 11, 2012 12:14 am

Hi.

I'm trying to have my player shoot at angled shots.

I've already set the input to where if the player holds down the w key and press the spacebar(shoot), the player will shoot at an angle of either 240 degrees, or -45 degrees, depending if the character is mirrored or not.

My problem is that when the character shoots at the upward angles, a second bullet spawns at the same time as if it were shooting straight of either left or right depending which way the character is facing.

How do I make the character shoot at the angles only without shooting a second bullet at the same time?
B
5
G
1
Posts: 21
Reputation: 417

Post » Sat Aug 11, 2012 2:07 am

You should post your capx, it would make it easier to answer according to how you implemented things so far.

You can also check the how do I FAQ some elements listed like "enemy shoot right and left" and others could answer your question.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Aug 11, 2012 2:45 am

This is what I've done so far.

B
5
G
1
Posts: 21
Reputation: 417

Post » Mon Aug 20, 2012 6:31 am

I solved my problem. This program is amazing...
B
5
G
1
Posts: 21
Reputation: 417


Return to How do I....?

Who is online

Users browsing this forum: a1oleg, DemantDigitalArt, GSquadron, jeffige, MarkThomas, newt, paala and 19 guests