Customizing the Options Screen

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.
Message
Author
Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: Customizing the Options Screen

#16 Post by Crazy Li » Sat Jan 04, 2014 1:30 am

SundownKid wrote:Well... first tag every screen you want to hide as something, whether it be menu or whatever else you want to tag them as. Just make sure the ones on top are tagged differently than the ones on the bottom.

Then rejigger the button so it's something like this:

Code: Select all

textbutton "Return" action Hide("menuscreen")
With "menuscreen" being what the screens you want to hide are tagged as.
Sweet! That works. Thank you so much! That was perfect on the Main Menu. All I needed to do to complete the package was make a conditional if to check if you're in-game or not. In game, it uses Return(), at the Main Menu, it uses Hide(). Only reason I did this was because Hide() in game brought me back without any text boxes which was kinda weird and I had to hit Esc to show anything on the screen beyond the background image. Kinda confusing, so the default Return() works best here.

Either way, I got something workable now. Thanks again.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Customizing the Options Screen

#17 Post by OokamiKasumi » Sat Jan 04, 2014 2:18 am

Crazy Li wrote:Nope, that didn't work. I tried putting in the code you said as you said, but this doesn't hide the background in game for me. Is it maybe where I put the $ clear = False statement? You never really said what file to put it in or where.
Did you go in options.rpy and change your gm_root to a blank png?
-- (I was under the impression that you already had.)

Code: Select all

        ## 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.
        mm_root = "bg_main",

        ## The background of the game 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.
        gm_root = "blank.png",
The flag belongs at the Beginning of your game in script.rpy under an init, with all the rest of your images and character definitions.

Code: Select all

init:     
    image bg_main = "bg_main.jpg"
    $ clear = False
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: Customizing the Options Screen

#18 Post by Crazy Li » Sat Jan 04, 2014 2:32 am

OokamiKasumi wrote:
Crazy Li wrote:Nope, that didn't work. I tried putting in the code you said as you said, but this doesn't hide the background in game for me. Is it maybe where I put the $ clear = False statement? You never really said what file to put it in or where.
Did you go in options.rpy and change your gm_root to a blank png?
-- (I was under the impression that you already had.)

Code: Select all

        ## 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.
        mm_root = "bg_main",

        ## The background of the game 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.
        gm_root = "blank.png",
The flag belongs at the Beginning of your game in script.rpy under an init, with all the rest of your images and character definitions.

Code: Select all

init:     
    image bg_main = "bg_main.jpg"
    $ clear = False
Of course I already had a blank (well semi-transparent) image in there. I also put the code at the beginning of script.rpy under the init as you said.

Doing it all was no different than if I didn't do it. It still shows the gm_root background image regardless of where the menu is called from.

It's ok though. I got something that works with Sundown's advice.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Customizing the Options Screen

#19 Post by OokamiKasumi » Sat Jan 04, 2014 2:54 am

Crazy Li wrote:It's ok though. I got something that works with Sundown's advice.
As long as you're happy with the results you have, I'm glad. :)
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: No registered users