renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
326 stars 64 forks source link

coliderect is looking for len of classes #105

Closed tomdvies closed 3 months ago

tomdvies commented 6 years ago

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