Is there a way in pygame to look for a collision between the a particular side of a sprite and a particular side of another sprite in pygame? For example, if the top of spri
For objectA give the object this method:
def is_collided_with(self, sprite): return self.rect.colliderect(sprite.rect)
This return statement returns either True or False
then in the main loop for collisions just do: if objectA.is_collided_with(ObjectB): Collision happened!
if objectA.is_collided_with(ObjectB): Collision happened!