Sprite mask collision problems in pygame
问题 I am attempting to create a racing game in pygame. I want it such that when the car goes off the track, it slows down. I have tried to do this by having another sprite that is an outline of the track and when the car touches that sprite, it slows down. This does not work and I don't know why. Is there a better way to do this? Img is the car image Back is the racetrack BackHit is the outline I receive this error code: Traceback (most recent call last): File "C:\Users\Daniella\Desktop\Python