0

I need some help for my coding

character.set_colorkey((255,255,255))
player_rect = pygame.Rect(50, 50, character.get_width(), character.get_height())
rect.x += movement[0]

And the bug like this: https://i.stack.imgur.com/aTJbB.png

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
key
  • 1
  • What has the colorkey to do with the collision? – Rabbid76 May 17 '22 at 15:06
  • Please read [Discourage screenshots of code and/or errors](https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors). Paste the error trace! – Rabbid76 May 17 '22 at 15:07
  • As pointed out in the error message, the `rect` variable somehow is a tuple, and not a rect. But we cannot find out how it comes, as we don't have enough code. – The_spider May 20 '22 at 18:55

0 Answers0