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.
-
sNooPy_DoGG
- Newbie
- Posts: 8
- Joined: Fri Apr 17, 2020 4:13 pm
- Projects: Eighty Four, Several DDLC Mods
-
Contact:
#1
Post
by sNooPy_DoGG » Fri Apr 30, 2021 3:04 pm
So I've posted about this before, and haven't really figured out how to fix it.
I'm using renpy version 7.3.5, btw. I've achieved my desired results on renpy version 6.99.12, but can't seem to replicate it on 7.3.5, even with the same code.
Essentially what I'm trying to do is change the title bg when the "settings"/"preferences" button is pressed. I've tried several suggestions from previous posts I've made here, such as:
Code: Select all
if renpy.get_screen("preferences"):
add "mod_assets/bg/titlescreenblank.png"
else:
add "mod_assets/bg/titlescreen.png"
to no avail. Any help? I've been stuck on this problem for 4-5 months... I'll be sure to provide images/my code on request.
"The internet is super smart. If you do something that is cool, that's actually worth people's time, then they'll adopt it. If you do something that's not cool and sucks, you can spend as many marketing dollars as you want, [they] just won't." - Gabe Newell
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Fri Apr 30, 2021 5:03 pm
Just to be sure, you've placed this code in the game_screen, correct? Not the main_menu screen.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
sNooPy_DoGG
- Newbie
- Posts: 8
- Joined: Fri Apr 17, 2020 4:13 pm
- Projects: Eighty Four, Several DDLC Mods
-
Contact:
#4
Post
by sNooPy_DoGG » Sat May 01, 2021 8:22 pm
Figured it out. Apparently I had the "game_menu" and "main_menu" images both as my 1280x720 main menu, so when preferences was pressed it would try to add the sidebar, and then since the sidebar was a 1280x720 image then it wouldn't show the settings background. Fixed it, thanks all for your help
"The internet is super smart. If you do something that is cool, that's actually worth people's time, then they'll adopt it. If you do something that's not cool and sucks, you can spend as many marketing dollars as you want, [they] just won't." - Gabe Newell
Users browsing this forum: Google [Bot]