Pygame
CaptainOmega10
-
samigtx1459 Messages postés 507 Statut Membre -
samigtx1459 Messages postés 507 Statut Membre -
Bonjour,
je suis en train de réaliser un jeu sur pygame en 2D. J'aurais souhaité savoir comment inverser une image sur pygame. En effet, j'aurais aimer, quand mon personnage marche vers la gauche, que son image se retourne dans le sens de la marche. Merci par avance de votre réponse.
Cordialement.
je suis en train de réaliser un jeu sur pygame en 2D. J'aurais souhaité savoir comment inverser une image sur pygame. En effet, j'aurais aimer, quand mon personnage marche vers la gauche, que son image se retourne dans le sens de la marche. Merci par avance de votre réponse.
Cordialement.
Configuration: Windows / Chrome 81.0.4044.92
1 réponse
Bonjour,
Je crois que ce lien pourra t'aider:
https://eng.libretexts.org/Bookshelves/Computer_Science/Book%3A_Making_Games_with_Python_and_Pygame_(Sweigart)/09%3A_Squirrel_Eat_Squirrel/9.07%3A_The_pygame.transform.flip()_Function
Je crois que ce lien pourra t'aider:
https://eng.libretexts.org/Bookshelves/Computer_Science/Book%3A_Making_Games_with_Python_and_Pygame_(Sweigart)/09%3A_Squirrel_Eat_Squirrel/9.07%3A_The_pygame.transform.flip()_Function