Pygame Rect collision
ash15khng (393)

https://repl.it/@ash15khng/pygame-moving-character
I tried to use the inbuilt pygame.Rect.colliderect, but it doesn't work. I've been on this for about an hour aaaa help pls
I made my enemy and player classes subclasses of pygame.Rect already, that shouldn't be the problem. In fact the code runs, but the collision never becomes true.

You are viewing a single comment. View All
Answered by mwilki7 (282) [earned 5 cycles]
View Answer
ash15khng (393)

@mwilki7 Thanks so much! It works!