I'm making a basic car game, and would like the car to move faster on the track and slower on the grass. I have two separate images to create the background, one is the track, and the other is the rest of the image.
I have a car sprite that can move around the screen, but when testing for collision I don't know what to do. I tried:
track = track = SCREEN.blit(track, (0, 0))
if track.colliderect(car):
speed += 1.5
else:
speed += 0.5
But I'm told this only works for rect objects, what do I need to do?
I've not been able to find anything related to image collision, that would help my situation, so if there are any other questions answering this please tell me.