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.