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.
How do I add image to main menu? [solved]
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.
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.
-
- Newbie
- Posts: 6
- Joined: Fri Aug 15, 2014 2:21 pm
- Contact:
How do I add image to main menu? [solved]
Last edited by PaperDragon on Tue Aug 19, 2014 2:02 pm, edited 1 time in total.
Re: How do I add image to main menu? Character name color?
LoL?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).
Open screens.rpy and find main_menu screen.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.
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"
is a nice way to do it. You can also define it in config in options.rpy as many guides suggest.
No idea...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.
This doesn't matter much in these cases but it does matter for some questions.PaperDragon wrote:Please, any and all help is greatly appreciated. I'm using Ren'py 6.17.7 - if that actually makes a difference.
-
- Newbie
- Posts: 6
- Joined: Fri Aug 15, 2014 2:21 pm
- Contact:
Re: How do I add image to main menu? Character name color?
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: LoL?
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...xela wrote:Open screens.rpy and find main_menu screen.
add "path_to_image"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"
is a nice way to do it. You can also define it in config in options.rpy as many guides suggest.
Re: How do I add image to main menu? Character name color?
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.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...
Who is online
Users browsing this forum: Andredron, Semrush [Bot]