Who placement keeps changing?

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
Egressus
Veteran
Posts: 240
Joined: Wed Apr 04, 2012 11:13 am
Projects: Things Not Seen
Location: Indonesia
Contact:

Who placement keeps changing?

#1 Post by Egressus »

I'm not sure what the heck is happening, and I don't even know where to start correcting.

Code: Select all

$ v = DynamicCharacter("Vance", who_xpos=0.5, window_background= "quotes.png", who_font = "Cour.ttf")
In one screen, the name is somewhere in the middle, but it moves to the right on the next screen. And jumps farther again. Also happens to other characters.

I just want the name to be on the center...
Hiatus of hiatuses

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Who placement keeps changing?

#2 Post by nyaatrap »

Are you trying to make character labels onto different positions? (like person1 name is left, person2 name is right)
If not, rewriting screen.rpy is simple solution.

Egressus
Veteran
Posts: 240
Joined: Wed Apr 04, 2012 11:13 am
Projects: Things Not Seen
Location: Indonesia
Contact:

Re: Who placement keeps changing?

#3 Post by Egressus »

I want the who label all to be in the center, but since I only used the one-box window, I'm not sure how to edit the who ones.
I'm kinda stupid with who things. Help?
Hiatus of hiatuses

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Who placement keeps changing?

#4 Post by nyaatrap »

Add xalign or xpos on the line of "text who" in the screen.rpy instead of defining character one by one.

Code: Select all

screen say:
    .......
    text who id "who" xalign .5

Egressus
Veteran
Posts: 240
Joined: Wed Apr 04, 2012 11:13 am
Projects: Things Not Seen
Location: Indonesia
Contact:

Re: Who placement keeps changing?

#5 Post by Egressus »

Thank you very much! You saved my sanity and my project!
Hiatus of hiatuses

Post Reply

Who is online

Users browsing this forum: Kocker