[Python] How can I change this variable [duplicate]

Discussão em 'Python' iniciado por Stack, Fevereiro 9, 2025.

  1. Stack

    Stack Membro Participativo

    if event.key == pygame.KEYDOWN:
    if event.key == pygame.K_UP:
    playerImg = pygame.image.load(`something.png`)
    if playerImg == pygame.image.load`ship2.png`):
    playerImg = pygame.image.load(`ship2l.png`)


    (if I changed the playerImg somewhere how can I do this?)

    python-pygame

    beacuse I don`t know

    Continue reading...

Compartilhe esta Página