I made this bouncing behaviour for a ball (see capx). The problem is that it checks for a lot of collisions, on average 1.200 per ball at least. In my game I sometimes have up to 15 balls on screen, so my collision checks (in debugging) are between 15.000 and 25.000. How do I lower these, because my game crashes.
1 make collision check sub event, real event is when ball is below x
2 make collision check sub event, real event is when ground i in line of sight.
Both didn't have a big impact, I only could lower the collision checks with 100-200 per ball, so there still are at least 1.000 checks per ball.
Help is appreciated!