try: for apple in apple_group: if personagem == 'hawking' and poder_ativado: if apple.rect.x < Ltela / 2: apple.rect.x += 2 if apple.rect.x > Ltela / 2: apple.rect.x -= 2 if apple.rect.y > Htela / 2 - 150: apple.rect.y -= 20 if apple.rect.y <= Htela / 2 - 150: apple.rect.y = Htela / 2 - 150 if personagem == 'newton': if apple.rect.y >= 300 and poder_ativado: '' else: apple.cair() if personagem != 'newton': apple.cair() if apple.rect.y >= Htela: pontuacao -= 1 multiplicador = 1 apple_group.remove(apple) except: '' try: for rotten_apple in rotten_apple_group: if poder_ativado and personagem == 'hawking': if rotten_apple.rect.x > Ltela / 2 - 2 and rotten_apple.rect.x < Ltela / 2: rotten_apple.rect.x -= 5 if rotten_apple.rect.x < Ltela / 2 + 250 and rotten_apple.rect.x > Ltela / 2: