How do I use events to change type of Bullet?

Get help using Construct 2

Post » Sun Apr 10, 2016 6:38 am

Hi there!

I've created a pretty decent top down shooter but I decided to include a sort of power up system where a object is shot the player will fire a different type of bullet. It's set up so that the left click of the mouse will spawn a 'bullet' from the character but I need it so when the character shoots a object the original bullet is changed to another bullet ( just a different Sprite). I've tried a couple ways but I just can't get it right. Any thoughts will help heaps!

~cheers
B
5
Posts: 7
Reputation: 239

Post » Sun Apr 10, 2016 6:54 am

Did you try with a variable?

Like : variable = type of bullet

When player shoots, check variable
- if variable = type1 > shoot bullet 1
- if variable = type2 > shoot bullet 2
B
18
S
7
G
1
Posts: 56
Reputation: 3,000

Post » Sun Apr 10, 2016 9:19 am

You can try this:
"Player" on collision with "powerUp" --> "BulletSprite" set frame to "1"

I just tried it and it doesn't work ...
B
36
S
10
G
9
Posts: 212
Reputation: 6,945

Post » Sun Apr 10, 2016 10:05 am

Here you go, I hope is what you need.
https://www.dropbox.com/s/9kpr4x8q871hv ... .capx?dl=0
B
36
S
10
G
9
Posts: 212
Reputation: 6,945


Return to How do I....?

Who is online

Users browsing this forum: fnfhjfdbdjbfbfd, plinkie and 24 guests