Jump to content

I was working on something like this in my school's computing club the other day, one of the guys there told me I would need to convert it to a spritesheet, get each image and then render each image.

i5 6600K @ 4.4GHz / Cooler Master Nepton 240M (GC Extreme Thermal Compound) / Asus Maximus VIII Gene / 8GB Corsair Vengeance LPX DDR4-2400 / 240GB SanDisk SSD Plus & 2TB SeaGate Barracuda HDD / EVGA GTX 980 ACX 2.0 / XFX XTR 750W 80+ Gold  / Fractal Design Node 804                                                                                                                                                                                                                      Total: £1042.31

Link to comment
https://linustechtips.com/topic/547223-moving-gif-python-335/#findComment-7232395
Share on other sites

Link to post
Share on other sites

12 hours ago, BluPaperclip said:

I was working on something like this in my school's computing club the other day, one of the guys there told me I would need to convert it to a spritesheet, get each image and then render each image.

That sounds like too much work, as it'll be a long gif.

Link to comment
https://linustechtips.com/topic/547223-moving-gif-python-335/#findComment-7235628
Share on other sites

Link to post
Share on other sites

7 hours ago, mattonfire said:

That sounds like too much work, as it'll be a long gif.

Search for a gif to spritesheet converter and convert it, then you have your spritesheet. Next, if all the frames are the same size, you can probably write a for loop using a class such as this one: http://pygame.org/wiki/Spritesheet putting each frame into an array and finally make a for loop for that array displaying the image

i5 6600K @ 4.4GHz / Cooler Master Nepton 240M (GC Extreme Thermal Compound) / Asus Maximus VIII Gene / 8GB Corsair Vengeance LPX DDR4-2400 / 240GB SanDisk SSD Plus & 2TB SeaGate Barracuda HDD / EVGA GTX 980 ACX 2.0 / XFX XTR 750W 80+ Gold  / Fractal Design Node 804                                                                                                                                                                                                                      Total: £1042.31

Link to comment
https://linustechtips.com/topic/547223-moving-gif-python-335/#findComment-7237536
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×