Greetings,
It seems I am having a bit of trouble with a project I'm working on in pygame. For one of my objects i used:
image.get_rect()
and assigned it to:
self.rect
I understand the default coordinates for the get_rect function gives a value of (0,0). As a result, I used:
self.rect.center = (320,240)
To roughly place the sprite in the middle of the screen. However, later on in a hitTest function, I want to call:
self.rect.colliderect(other_rect)
I get an error: 'tuple' object has no assignment 'colliderect'.
Does this happen because the self.rect.center assignment change the properties of self.rect?