Layered Main Menu Background Image Animation

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
RVNSN
Regular
Posts: 36
Joined: Mon Apr 08, 2019 3:54 pm
Projects: Lust & Piracy
itch: rvnsn
Contact:

Layered Main Menu Background Image Animation

#1 Post by RVNSN »

Does anyone know how you would create a layered menu animation?

For example, I would like to do something like the following, only you can't define an image using show and behind the way you can in the script:

image main_menu_anim1:
"image1"
"image2" behind "image1"

image image1:
"someimage1"
5
"someimage2"
5
repeat

image image2:
"someimage3"
5.5
"someimage4"
5.5
repeat

I have tried

image main_menu_anim1:
"image2"
"image1"

but that just shows the second image over a black background


EDIT: SOLVED
Using a layered image https://renpy.org/doc/html/layeredimage.html (which I had forgotten about) was the solution I needed.

Code: Select all

layeredimage titanim2:
    always:
        "tit_images_anim_1"
    always:
        "tit_words_anim_1"

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]