Even though I have clearly set a rect for cheese it still gives me an error.
https://paste.pythondiscord.com/3VWQ
File "c:\Users\user\OneDrive\Desktop\My Things\Code\Python\cheese chase\main.py", line 186, in <module>
main_menu()
File "c:\Users\user\OneDrive\Desktop\My Things\Code\Python\cheese chase\main.py", line 177, in main_menu
play()
File "c:\Users\user\OneDrive\Desktop\My Things\Code\Python\cheese chase\main.py", line 89, in play
all_sprites.update()
File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pygame\sprite.py", line 555, in update
sprite.update(*args, **kwargs)
File "c:\Users\user\OneDrive\Desktop\My Things\Code\Python\cheese chase\main.py", line 21, in update
self.check_collisions()
File "c:\Users\user\OneDrive\Desktop\My Things\Code\Python\cheese chase\main.py", line 32, in check_collisions
if self.rect.collidepoint(cheese.rect):
^^^^^^^^^^^
AttributeError: type object 'cheese' has no attribute 'rect'
, you probably meant to use