I have two classes with an image and a self.rect. When the two images touch each other, I was wanting one of the classes to disappear and the other class to gain "points". I used a for loop like this:
For class1 in class1_list:
for class2 in class2_list:
if class1.rect.colliderect(class2.rect):
class1.disappear = True
class2.points +=1
The problem is, is that if the two classes overlap each other for a while, the colliderect if statement keeps running. I want the colliderect to stop once class1 disappears.