1
Pygame Rect collision
ash15khng (214)

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 (108) [earned 5 cycles]
View Answer
1
katyadee (808)

Hey there! You should add a little more context to your question & the subject line, so it's easier for people to find and answer.

1
ash15khng (214)

@katyadee Sorry, I'll do that next time.