Nov-12-2019, 06:19 AM
Your condition
if wall.rect.x==self.rect.x + dx and wall.rect.y == self.rect.y + dy:
seems never to be True.
Are you sure to test for equality? Maybe you need to test for being within a range?
Without more code it´s difficult to help, it´s just guessing.
if wall.rect.x==self.rect.x + dx and wall.rect.y == self.rect.y + dy:
seems never to be True.
Are you sure to test for equality? Maybe you need to test for being within a range?
Without more code it´s difficult to help, it´s just guessing.