Textbox Changes Positions?

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
User avatar
SpaceToast
Newbie
Posts: 10
Joined: Sun May 29, 2016 4:35 am
Projects: Iridescent
Organization: Late Night Cookie Crew
Contact:

Textbox Changes Positions?

#1 Post by SpaceToast » Tue Jun 07, 2016 10:38 pm

Hi! I just recently started to use the code for custom dialogue boxes from the Ren'Py cookbook for my visual novel. However, I have been having problems! Everything is aligned well and all but the textbox jumps from its spot to a different spot at certain dialogue lines. I've posted screenshots as well as the code for the dialogue box down below.

Code: Select all

define a = Character('Akira Yamasaki', image = "Akira", window_background="akiradialouge.png", window_bottom_padding= 125, what_xpos=150, what_ypos=10, who_ypos=5, who_xpos=150, what_slow_cps=35)
At its set position:
Image

Suddenly jumped to a different position?:
Image

User avatar
theCodeCat
Regular
Posts: 62
Joined: Sun Sep 06, 2015 8:40 pm
Projects: Lucid9, Mystic Destinies: Serendipity of Aeons
Skype: theCodeCat
Contact:

Re: Textbox Changes Positions?

#2 Post by theCodeCat » Wed Jun 08, 2016 4:51 pm

The problem is that you are using "window_bottom_padding" to position the text box.
If you replace that parameter with "window_ysize" and adjust the value so that the textbox is aligned for single-line dialogue, then it should remain aligned for multi-line dialogue as well.

User avatar
SpaceToast
Newbie
Posts: 10
Joined: Sun May 29, 2016 4:35 am
Projects: Iridescent
Organization: Late Night Cookie Crew
Contact:

Re: Textbox Changes Positions?

#3 Post by SpaceToast » Sat Jun 11, 2016 4:18 am

theCodeCat wrote:The problem is that you are using "window_bottom_padding" to position the text box.
If you replace that parameter with "window_ysize" and adjust the value so that the textbox is aligned for single-line dialogue, then it should remain aligned for multi-line dialogue as well.
That seemed to do the trick! Thank you so much!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]