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.
Is it possible to have an animation as the main menu background? - My VN is set in winter and the whole main-menu screen is kind of crappy without falling snow...
mm_root should accept animations. Have you tried something like mm_root=Animation(...)? That _should_ work. If I wanted to use a particle system, I'd do something like:
mm_root=Fixed(
Particle(...),
Image(...))
Supporting creators since 2004 (When was the last time you backed up your game?)
luminarious wrote:I'm sorry, I think I'm being a bit dense right now, but if that's the syntax, how can I use at the same time a background picture and SnowBlossom?
The 'Fixed' class which PyTom mentions is a layout class which will contain other displayables, so that when the Fixed is drawn it will draw first one of its parameters, then the other one:
## The background of the main menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
which should be changed in that any(?) displayable is accepted. - Anyway thanks again, that saved my day
While executing init code:
- script at line 10 of C:\Documents and Settings\haseeb1\Desktop\R渭dem'i\renpy-6.6.2-full\renpy-6.6.2\roxdemi/game/options.rpy
- python at line 77 of C:\Documents and Settings\haseeb1\Desktop\R渭dem'i\renpy-6.6.2-full\renpy-6.6.2\roxdemi/game/options.rpy.
GIFs don't work as animations in Ren'Py; you need to define your own with the Animation displayable.
And as it goes, the 'error' you posted isn't helpful in the least, Zephiel. All you've given us is the first couple of lines of the stack trace - that is, it's telling us where in your script the error occurred. But since we don't have your script, and we don't know what the error actually was (it's in the same traceback.txt file, further down) we can't really help you just based on that, we have to guess what you're doing wrong. It might be totally unrelated to GIFs for all we know.
When you have a problem, you really need to post the entire traceback.txt file, and it really helps if you post the lines from your script which are causing the error as well. The traceback tells you which line numbers are responsible.
I think (I don't know actually) that renpy doesn't support APNGs (animated PNGs), so this way you're stuck with defining the animation on a per-frame filmstrip basis (which is complicated for longer animations, see http://www.renpy.org/wiki/renpy/doc/ref ... .Filmstrip).
It may be a better idea to record your animation as an MPEG-1 video (and keep it as small as possible) and then embed it in a displayable that will show it on the main menu.
Angels of paradise, angels of sacrifice
Please let me be under your wings...
I'm pretty sure PyTom's said he has no plans to implement it.
zephiel wrote:
or wat format is usable?
The one I mentioned in my last post, for one - save out your frames individually and assemble them into an Animation displayable. It's really not difficult if you follow the example in the manual.
Compiling your animation into an MPEG1 video will probably be more trouble than it's worth for a short animation, and assembling an Animation displayable frame by frame is probably more trouble than it's worth for a long animation.
IIRC also that when Ren'Py plays MPEG1 videos it hands the audio mixer off to the movie-playing code wholesale, so you can't play any other sounds while your animation is going on.