Pygame : déplacer un sprite en continu
Résolu/Fermé
Thevivi84
Messages postés
115
Date d'inscription
samedi 31 mai 2014
Statut
Membre
Dernière intervention
7 octobre 2018
-
4 juil. 2017 à 01:35
Thevivi84 Messages postés 115 Date d'inscription samedi 31 mai 2014 Statut Membre Dernière intervention 7 octobre 2018 - 12 juil. 2017 à 16:53
Thevivi84 Messages postés 115 Date d'inscription samedi 31 mai 2014 Statut Membre Dernière intervention 7 octobre 2018 - 12 juil. 2017 à 16:53
A voir également:
- Pygame : déplacer un sprite en continu
- Gravity pygame ✓ - Forum Python
- Installer Pygame - Forum Python
- Pygame image ✓ - Forum Python
- Tkinter pygame - Forum Python
- Pygame mac - Forum Python
2 réponses
Thevivi84
Messages postés
115
Date d'inscription
samedi 31 mai 2014
Statut
Membre
Dernière intervention
7 octobre 2018
4 juil. 2017 à 15:16
4 juil. 2017 à 15:16
Up
En effet time.sleep bloque tout, ce qui est normal.
Pour cela il faut chercher dans le module time de pygame ce qui correspondrait mieux à ton cas d'utilisation.
Un exemple ici qui pourrait ressembler à ton besoin :
https://stackoverflow.com/questions/23368999/move-an-object-every-few-seconds-in-pygame
Pour cela il faut chercher dans le module time de pygame ce qui correspondrait mieux à ton cas d'utilisation.
Un exemple ici qui pourrait ressembler à ton besoin :
https://stackoverflow.com/questions/23368999/move-an-object-every-few-seconds-in-pygame
Thevivi84
Messages postés
115
Date d'inscription
samedi 31 mai 2014
Statut
Membre
Dernière intervention
7 octobre 2018
12 juil. 2017 à 16:53
12 juil. 2017 à 16:53
Merci !!!