I need help with how can i remove the mask after a coLlide from POINTS_MASK.
def handle_collision(player_car, computer_car, game_info):
from pause_for_p_track_1 import main_menu
if computer_car.collide(TRACK_BORDER_MASK) != None:
computer_car.bounce()
if computer_car.collide(POINTS_MASK1, *POINTS_POSITION1) is not None:
computer_car.bounce()
game_info.points += 5
images.remove((POINTS1, POINTS_POSITION1))
Because now when i collide with the images the points add forever and I want so when you drive into the image so the points only add one time.
New contributor