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 uploaded an image to show what I'm talking about. I've tried googling the problem, and moving the code around but the tree (the name window) is still showing up behind the text box window, despite my best efforts. Is there a way to fix this? as it is, the text box image (white/blue texture) is showing up over the name window.
Actually, does Renpy use the same method in displaying images in screen language (the one who comes last will be at the top)? If so then you might need to swap the code around into this
screen say:
default side_image = None
default two_window = False
if not two_window:
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
else:
vbox:
style "say_two_window_vbox"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
if who:
window:
style "say_who_window"
text who:
id "who"
if side_image:
add side_image
else:
add SideImage() xalign 0.0 yalign 1.0
use quick_menu
That's what I meant when I said that I tried swapping the code around, so that they were placed before or after one another. It didn't help with layering the images.
If I try adding that code it gives me:
Parsing the script failed.
File "game/options.rpy", line 155: invalid syntax
screen say-->:
No, that's where I got the code from originally. I've temporarily fixed it by just chopping the images up in photoshop which is fine. I was just sort of hoping there was a code version to fix it. Thank you anyway! :3
Geckos wrote:That's what I meant when I said that I tried swapping the code around, so that they were placed before or after one another. It didn't help with layering the images.
If I try adding that code it gives me:
Parsing the script failed.
File "game/options.rpy", line 155: invalid syntax
screen say-->:
I used the defualt codes that come with Renpy, I don't know why it would give an invalid syntax error.
Still it kinda bugs me that such a seemingly simple problem can't be solved by swapping the codes around >_>