+ 3

Loading multiple image in python

Loading and drawing, multiple images, so the image looks like it is moving. I used array to load the images, but the character still not moving? Any suggestions

8th Dec 2020, 9:42 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
2 Respostas
+ 3
See make a list of png files and inside game loop call one by one, yes! Don't forget to set framePerSecond(fps) for smooth animation of images. And you can read the pygame documentation for know more about it - https://www.pygame.org/ Helpful for you -> https://stackoverflow.com/questions/14044147/animated-sprite-from-few-images
11th Dec 2020, 6:00 AM
Priyanshi
Priyanshi - avatar
+ 1
Thank you Rishi , I got fixed already ^^
11th Dec 2020, 6:02 AM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar