I have a problem with a game I'm making. I'll try to make this as succinct as possible...
All the sprites are stored in a vector, and the collision detection is done by rolling through the vector and checking for collisions.
As well as individual sprites, I have put into the vector a few arrays of sprites too (because some of the sprites are of the same type, like "enemies").
The collision detection has recently become unpredicatable, only detecting collisions with about 50-60% accuracy.
Although I have a few suspicions about what could be causing it, my main concern is that a vector of sprites cannot hold both sprites and arrays of sprites - and that is the root of the collision detection problem.
Cannot anyone tell me whether that is right or wrong?
Any help is greatly appreciated. Really.