There is a game where rectangles falls and we have to avoid them, if we collide once speed decreases by 1 , second time speed decreases by 2 and so on
How to find out how many times we collided
You can create a variable which gets added to every time you collide and another variable which is set to true once it collides then you can make it false and send the rectangle somewhere else.
How to know how many times my rectangle has collided with other rectangles in pygame?