Hi there, I have a game with scrolling tiled maps, a player and some enemies which collide with the player and the bullets it shoots. I'm adding the bullets to an array, and there's a collision detection function running every 0.001 seconds, enumerating the bullets array and checking all the possible collisions using CGRectIntersectsRect and I'm using the new boundingBox property since there's no special action running by players/enemies. Although this works 98% of the time, I've noticed sometimes the collisions don't get detected and for example the player or a bullet passes an enemy. This happens when the new level map is loading.
How can I solve this ? Move the map loading thing or the collision detector to a new thread ? Decreasing the update time of the collision detector ?
Thanks for any help