[Solved] How do I animate the "background" on the main menu?

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
Chekhov
Regular
Posts: 113
Joined: Tue Jun 26, 2018 9:19 am
Projects: Pluton
Contact:

[Solved] How do I animate the "background" on the main menu?

#1 Post by Chekhov »

I've gotten an animated down the way I want it, here is a sample.

However, I have no idea how to modify it and use it in the main menu.

I see that other things are first defined in options and then under screens it has an "add", but I have no idea how to reword the following as a define gui.xxxx, if that is even possible.

I don't mind if I break functionality on mobile devices.

Code: Select all

image main_menu_animated:

    "/gui/main_menu.png"
    pause 5.0
    "/gui/main_menu_both_forest.png" with Dissolve (4.0)
    pause 4.0
    "/gui/main_menu.png" with dissolve
    pause 5.0
    "/gui/main_menu_both_city.png" with Dissolve (3.0)
    pause 3.0
    repeat
Last edited by Chekhov on Sat Mar 30, 2019 11:03 am, edited 1 time in total.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: How do I animate the "background" on the main menu?

#2 Post by IrinaLazareva »

~88th line of the gui.rpy:

Code: Select all

## The images used for the main and game menus.
define gui.main_menu_background = 'main_menu_animated'

User avatar
Chekhov
Regular
Posts: 113
Joined: Tue Jun 26, 2018 9:19 am
Projects: Pluton
Contact:

Re: How do I animate the "background" on the main menu?

#3 Post by Chekhov »

Not sure why I spent so long on this.... all I had to is put it between quotes. I had come so close at one point!

Thanks Irina.

Post Reply

Who is online

Users browsing this forum: Google [Bot], IrisColt