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.
image test = Animation("sozai/anim/1.png", 0.08,
"sozai/anim/2.png", 0.08,
"sozai/anim/3.png", 0.08,
"sozai/anim/4.png", 0.08,
"sozai/anim/5.png", 0.08)
show test with dissolve
However, if I do this under a Screen block, I will get errors. Is there a Screen language equivalent for doing the above? (or at least, for showing the animated image?)
I'm having a minor problem with my animation display in my game right now. My battle animations seem to start in the middle rather than at the beginning. Is this due to slowdown? Is there a way to force the game to preload the animation before attempting to loop it, so it starts at the first frame?
I can think of a number of kludge fixes, such as including a number of static starting frames. But it'd be nice to just flip a "preload" flag or somesuch.
Well, it might be your sprites, used in animation, or a big image that will appear in some lines next to animation (check up to 10 lines of code). In any case renpy.cache_pin should help you.
Ren'Py will preload images used on screens, as long as there's enough room for them and it's given enough time to do so. Generally, renpy.cache_pin shouldn't be used - consider increasing config.image_cache_size from the default of 8 instead.
Supporting creators since 2004 (When was the last time you backed up your game?)