when ever i try to call coliderect on an object it gives this error i am not sure why its asking for len.
Traceback (most recent call last):
File "C:/Users/davie/OneDrive - The City of Edinburgh Council/ytgm mobile/main.py", line 306, in
if character.rect.colliderect(builded[x]):
File "src\pygame_sdl2\rect.pyx", line 348, in pygame_sdl2.rect.Rect.colliderect
File "src\pygame_sdl2\rect.pyx", line 45, in pygame_sdl2.rect.Rect.init
TypeError: object of type 'building' has no len()
libpng warning: iCCP: known incorrect sRGB profile
when ever i try to call coliderect on an object it gives this error i am not sure why its asking for len.
Traceback (most recent call last): File "C:/Users/davie/OneDrive - The City of Edinburgh Council/ytgm mobile/main.py", line 306, in
if character.rect.colliderect(builded[x]):
File "src\pygame_sdl2\rect.pyx", line 348, in pygame_sdl2.rect.Rect.colliderect
File "src\pygame_sdl2\rect.pyx", line 45, in pygame_sdl2.rect.Rect.init
TypeError: object of type 'building' has no len()
libpng warning: iCCP: known incorrect sRGB profile