[SOLVED] Main Menu Slideshow

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
galadain
Regular
Posts: 31
Joined: Wed Sep 09, 2020 4:24 pm
Contact:

[SOLVED] Main Menu Slideshow

#1 Post by galadain »

I like to have a rotating slideshow of images for the main menu background vs a single static image. Maybe have each background on the screen for a few seconds then switch to the next background. Any suggestions on how to accomplish this?
Last edited by galadain on Thu Apr 08, 2021 3:12 pm, edited 1 time in total.

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Main Menu Slideshow

#2 Post by emz911 »

You can use ATL to define one image that allows transitions to several different images, see examples in document: https://www.renpy.org/doc/html/atl.html

galadain
Regular
Posts: 31
Joined: Wed Sep 09, 2020 4:24 pm
Contact:

Re: Main Menu Slideshow

#3 Post by galadain »

Documentation can be a bit daunting. Figured it out by creating a custom_atl.rpy file with the following:

Code: Select all

image mainmenu_bg:
   "mmbg_null.png" with dissolve
   2.0
   "mmbg_1.png" with dissolve
   2.0
   "mmbg_2.png" with dissolve
   2.0
   "mmbg_3.png" with dissolve
   2.0
   "mmbg_4.png" with dissolve
   2.0
   "mmbg_3.png" with dissolve
   2.0
   "mmbg_2.png" with dissolve
   2.0
   "mmbg_1.png" with dissolve
   2.0
   repeat
Then just changed gui.rpy from

Code: Select all

define gui.main_menu_background = "gui/game_menu.png"
to

Code: Select all

define gui.main_menu_background = "mainmenu_bg"

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]