Help with Spawn Quantity

Get help using Construct 2

Post » Sat Aug 03, 2013 8:07 pm

Hi, I am doing a breakout clone game and i have a mental block on something. I have a powerup called extra ball. I dont want any more than 2 balls to be on the screen at once. So if a 3rd extra ball powerup is collected on 2 balls remain on the screen at any one time. But the way its working at the moment is when the ballcount = 2 it will always spawn another ball and the ballcount goes wrong.
Any assistance will be grateful. I'm sure its something simple i have missed but mental block is winning at the moment.

CAPXGweely2013-08-03 20:20:54
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Sat Aug 03, 2013 8:22 pm

Well you're spawning a ball if ballcount <= 2 in event 22 and it always is because of event 21. You could rearrange it like this:

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Sat Aug 03, 2013 8:34 pm

@ramones

Thank you so much, missed that good and proper.
Works perfectly.
B
28
S
6
G
2
Posts: 86
Reputation: 3,267


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 8 guests