In my python prog i have 2 surfaces :
ScreenSurface: the screenFootSurface: another surface blited onScreenSurface.
I put some rect blitted on the FootSurface, the problem is that Rect.collidepoint() gives me relative coordinates linked to the FootSurface and pygame.mouse.get_pos() gives absolute coordinates.
for example :
pygame.mouse.get_pos() --> (177, 500) related to the main surface named ScreenSurface
Rect.collidepoint() --> related to the second surface named FootSurface where the rect is blitted
Then that can't work. Is there an elegant python way to do this things: have the relative position of mouse on the FootSurface or the absolute position of my Rect; or must I change my code to split Rect in the ScreenSurface.