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.
Go into the say screen, and re-order the two windows so that the who box comes after the what box. They're drawn from back to front, so things in the front have to be after the ones in the back.
Supporting creators since 2004 (When was the last time you backed up your game?)
else:
# The two window variant.
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"
I have moved to a new account. Please contact me here from now on. T/Y~
The xalign helped in the positioning, so thanks! But the problem now lies with the yalign. No matter how I changed the values, the namebox doesn't move and stays where it is like a lemon.
# The two window variant.
vbox:
style "say_two_window_vbox"
if who:
window:
xalign 0.21
yalign 10
style "say_who_window"
text who:
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
I switched back to the default order of the who and what boxes for nyaatrap's solution since combining Pytom's instructions and nyaatrap's created another problem. Forgive my use of words...
Hey there HigurashiKira. Glad we have the same problem
Stagnant? Me too!
Send me a note to my dA Account and I'll see what I can do~!
PyTom wrote:You probably want to turn that vbox into a fixed, and just position everything using xpos/ypos.
Ahhh.. I forgot the existence of that vbox *ashamed
Would you mind reposting that code you deleted up there? I didn't have the chance to read it. I might understand something back there because I don't know what's with the "fixed" and the vbox.
Stagnant? Me too!
Send me a note to my dA Account and I'll see what I can do~!
# The two window variant.
vbox:
style "say_two_window_vbox"
This vbox was the reason yalign didin't work, because a vbox places following windows vertically.
If you change it to a fixed, you can position windows freely.
# The two window variant.
fixed:
style "say_two_window_vbox"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
if who:
window:
xalign 0.01
yalign 0.15
style "say_who_window"
text who:
id "who"
# The two window variant.
vbox:
style "say_two_window_vbox"
This vbox was the reason yalign didin't work, because a vbox places following windows vertically.
If you change it to a fixed, you can position windows freely.
# The two window variant.
fixed:
style "say_two_window_vbox"
if who:
window:
xalign 0.21
yalign 0.29
style "say_who_window"
text who:
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
# The two window variant.
fixed:
style "say_two_window_vbox"
window:
ypos 200
id "window"
has vbox:
style "say_vbox"
text what id "what"
if who:
window:
xpos 100
ypos -50
style "say_who_window"
text who:
id "who"
and I got this
[edit:]
Also, following codes are no more needed. You can delete them.
# The two window variant.
fixed:
style "say_two_window_vbox"
window:
ypos 200
id "window"
has vbox:
style "say_vbox"
text what id "what"
if who:
window:
xpos 100
ypos -50
style "say_who_window"
text who:
id "who"
and I got this
[edit:]
Also, following codes are no more needed. You can delete them.