|
Whenever an object moves in the game that can collide with another, you should check for a collision. So whenever event invokes movement on such an object, you should check for a collision (for instance, if the player is moved by keys, you check the if the player has collided with anything).
|