Lately I have been working with pygame and I was trying to detect when a mouse clicks over an image. Here is some code that I had but I kept getting a error saying: 'pygame.Rect' object has no attribute 'collide_point'. How do I fix the code? Here is the code that I used: Lately I have been working with pygame and I wa