How do I add image to main menu? [solved]

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
PaperDragon
Newbie
Posts: 6
Joined: Fri Aug 15, 2014 2:21 pm
Contact:

How do I add image to main menu? [solved]

#1 Post by PaperDragon » Fri Aug 15, 2014 3:21 pm

Exactly what is says. I'm really new to Ren'py and although I have looked at tutorials on the internet - as well as the one that comes with Ren'py - I am unable to find one that actually works for me. After much playing around, I finally got the images to show up on the game (though none of the tutorials I found actually used the coding that eventually worked for me). Now I am trying to add a background image to the main menu of the game screen and I have tried so many things with nothing working.

I don't know what the problem is, but it usually says something like 'expected 'word' missing'. (But I've tried so many things that I cannot remember all of them.)

I'm also trying to change the color that shows up on a character name when that character is talking. I have tried the one that's in the tutorial script file: define s = Character(_('Sanya'), color="#fd482f") but the color is still white.

Please, any and all help is greatly appreciated. I'm using Ren'py 6.17.7 - if that actually makes a difference.
Last edited by PaperDragon on Tue Aug 19, 2014 2:02 pm, edited 1 time in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How do I add image to main menu? Character name color?

#2 Post by xela » Fri Aug 15, 2014 3:46 pm

PaperDragon wrote:Exactly what is says. I'm really new to Ren'py and although I have looked at tutorials on the internet - as well as the one that comes with Ren'py - I am unable to find one that actually works for me. After much playing around, I finally got the images to show up on the game (though none of the tutorials I found actually used the coding that eventually worked for me).
LoL?
PaperDragon wrote:Now I am trying to add a background image to the main menu of the game screen and I have tried so many things with nothing working.
Open screens.rpy and find main_menu screen.

Code: Select all

screen main_menu:
    
    # This ensures that any other menu screen is replaced.
    tag menu
    
    # The background of the main menu.
    window:
        style "mm_root"
        
    add "path_to_image"
add "path_to_image"

is a nice way to do it. You can also define it in config in options.rpy as many guides suggest.
PaperDragon wrote:I'm also trying to change the color that shows up on a character name when that character is talking. I have tried the one that's in the tutorial script file: define s = Character(_('Sanya'), color="#fd482f") but the color is still white.
No idea...
PaperDragon wrote:Please, any and all help is greatly appreciated. I'm using Ren'py 6.17.7 - if that actually makes a difference.
This doesn't matter much in these cases but it does matter for some questions.
Like what we're doing? Support us at:
Image

PaperDragon
Newbie
Posts: 6
Joined: Fri Aug 15, 2014 2:21 pm
Contact:

Re: How do I add image to main menu? Character name color?

#3 Post by PaperDragon » Fri Aug 15, 2014 3:59 pm

xela wrote: LoL?
Don't ask me. All I know is that it didn't work like they said it would. I even tried adding images the way the game tutorial with Ren'py said, and it didn't work. But I played with it until I got it.
xela wrote:Open screens.rpy and find main_menu screen.

Code: Select all

screen main_menu:
    
    # This ensures that any other menu screen is replaced.
    tag menu
    
    # The background of the main menu.
    window:
        style "mm_root"
        
    add "path_to_image"
add "path_to_image"

is a nice way to do it. You can also define it in config in options.rpy as many guides suggest.
Thank you so much. All this time I was trying to put the code in the wrong place. Ugh. Anyways, thank you it worked perfectly. Seriously though, that wasn't what any of the tutorials I found told me to do...

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How do I add image to main menu? Character name color?

#4 Post by xela » Fri Aug 15, 2014 4:09 pm

PaperDragon wrote:Thank you so much. All this time I was trying to put the code in the wrong place. Ugh. Anyways, thank you it worked perfectly. Seriously though, that wasn't what any of the tutorials I found told me to do...
No problem. It's the best way I know on getting it done but most tutorials will insist on using config settings (old way). There is a lot modern Ren'Py can do that while having more than adequate documentation doesn't provide enough examples or points out its the most obvious uses.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]