Bubble Popper... Lags a lot!

Hello,

I am working on a bubble popper game where I have a total of 150 bubbles on the screen.

The way I have it set up is that each bubble checks if any of the four neighbors (top, bottom, left, right) have been popped & were the same color, then it destroys itself.

That means that at the beginning I have 150 objects running these rules which makes the popping mechanism lag.

Is there a tutorial out there that could help me with this type of scenario? So I can optimize the code a bit?

Comments

Sign In or Register to comment.