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.
I'm fairly new to renpy and have looked at forum posts both on here and reddit but nothing seems to be working. I am trying to set a different custom background for each screen in my menu (load, preferences, about, help) instead of having just one background for all of them. I've mainly been messing with putting "add image" in different parts of the screen code as shown below, but it either doesn't make a difference or just adds the image inside of the text box.
Repeat the elif part for each screen you want to change the background.
The reasons for that:
A) The game_menu is responsible to determne the background to show in the default interface, not each single screen. The renpy.get_screen() function return True if that screen is shown.
B) Reddit IS NOT AND WILL BE NEVER a reliant source for renpy (and barely YouTube is).
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
gas wrote: ↑Sun Dec 27, 2020 3:51 am
EDIT: understood. You want to change the overall background, not just the frame. 'Right.
Try change the game_menu like below:
Repeat the elif part for each screen you want to change the background.
Thank you so much for responding! I tried out the code (below) and even though there are no errors, the background hasn't changed in the slightest. I also double-checked my image names just in case but they were labeled correctly so I'm not sure why it is still using the default menu background.
(I also tried deleting the yinitial=0.0 part in the first line to match your code but that caused a bunch of errors so I just put it back)
Ok, my bad. Is SO SILLY as an error I feel embarassed.
The first if check the context XD.
So as long you're in the main menu, it show the first condition.