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.
# Say
#
# Screen that's used to display adv-mode dialogue.
# http://www.renpy.org/doc/html/screen_special.html#say
screen say:
# Defaults for side_image and two_window
default side_image = None
default two_window = False
# Decide if we want to use the one-window or two-window varaint.
if not two_window:
# The one window variant.
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
else:
# The two window variant.
vbox:
style "say_two_window_vbox"
if who:
window:
style "say_who_window"
text who:
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
# If there's a side image, display it above the text.
if side_image:
add side_image
else:
add SideImage() xalign 0.0 yalign 1.0
# Use the quick menu.
use quick_menu
style.window.background = Frame("Swag.png", 0, 0)
## Margin is space surrounding the window, where the background
## is not drawn.
style.window.left_margin = 0
style.window.right_margin = 0
style.window.top_margin = 0
style.window.bottom_margin = 0
## Padding is space inside the window, where the background is
## drawn.
style.window.left_padding = 20
style.window.right_padding = 0
style.window.top_padding = 20
style.window.bottom_padding = 6
## This is the minimum height of the window, including the margins
## and padding.
style.window.yminimum = 150
I've been staring at that for the past 2 days and I haven't gotten much of anywhere :\
I'm really getting frustrated with this. I've already been smacking my head against the wall to try and learn this stuff with the guides on here and on the Ren'py site. but I just cant comprehend them.
I've figured out the text box staying the same size and I've fixed the alignment of my text,but I have no idea how to separate the characters from the text and set them into the box above. I can stare and re-read the guide 20 times but my mind just cant wrap around what the person who made that post is trying to say. Its literally just a wall of text to me that is rather vague. >.<
I assume you're using a fixed image for your textbox background, looking from your code....
how about modifying the position of the window instead of the text then?
and also as apricotorange said, have you tried the show_two_window?
without using it, both the char name and the text will appear on the same area, causing the line of the narrator and the char text going up and down like in your vid.
especially when you have that kind of window bg, you may also want to use the say_who_window bg into none so it'll be transparent and you can adjust it into your textbox background.
My artworks on deviantART.
Now also opening commission! *shameless promotion mode on
I wish I could start off my own VN thread ASAP ._.
Oh sorry. Actually, I didn't see that your textbox was a Frame that is why my code doesn't work for you ^^ I actually use full screen image for my textboxes, so that's why the code works for me and not for you.
I apologize !
## Padding is space inside the window, where the background is
## drawn.
style.say_dialogue.ypos = xxx
Where xxx = the distance in pixels from the top of the textbox image to the top of the text. You might also just have to check how that interacts with the style.window.top_padding though.