[Solved]name and namebox alignment

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.
Post Reply
Message
Author
Ace94
Regular
Posts: 113
Joined: Sat Apr 08, 2017 4:22 pm
Contact:

[Solved]name and namebox alignment

#1 Post by Ace94 »

Hi. I am trying to align the namebox to be little above the textbox in the top left corner (images provided). And it worked, but once I add other character names in the mix the box moves it's xpos depending on the character's name length. For example Jack will be perfect fit, but Peter will get the namebox outside the screen. Can I make it so that it doesn't move with longer or shorter names? This is the code I use right now:

Found the problem.

It was

Code: Select all

window_left_padding = 160
in the script.rpy on the defining of the characters if anyone was curious.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: [Solved]name and namebox alignment

#2 Post by Remix »

Have you tried the namebox settings in gui.rpy ?

I use

define gui.name_xpos = 40
define gui.name_ypos = -64

for one of mine, which positions it a bit above and near the left edge. (positions are from top left of say window)
Plenty of namebox values in there to play with anyway
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Tomoyo Ichijouji