How to use a gif animated sprite

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Vnigma
Regular
Posts: 50
Joined: Wed Sep 16, 2015 6:43 pm
Projects: Origin of War
Organization: VNigma
Contact:

How to use a gif animated sprite

#1 Post by Vnigma »

hello
i already use animation by creating an image with motion but i would like to use an image.gif instead, can anyone tell me how cuz
when i declare a gif image it stays static.

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: How to use a gif animated sprite

#2 Post by indoneko »

It would be better to export your animation to .webm instead of .gif
While Renpy still support non-animated gif and bmp, those format shouldn't be used in modern games.
My avatar is courtesy of Mellanthe

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to use a gif animated sprite

#3 Post by trooper6 »

Renpy deosn't supports animated gigs. Instead, use ATL to animate instead.
https://www.renpy.org/doc/html/atl.html
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How to use a gif animated sprite

#4 Post by Imperf3kt »

Gif has pretty bad compression. As stated above, use exported frames + ATL, or webm with vp9 codec.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot]