Bubble Popper... Lags a lot!
guillopuyol
Member Posts: 5
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?
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User