Custom Textbox Issue

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
Zeekee
Regular
Posts: 67
Joined: Wed Jul 23, 2014 10:17 pm
Projects: No One But You, The Anomaly
Organization: Annexe Interactive
Skype: ytmnd111
Soundcloud: zomgaarh
Location: USAF Academy, CO
Contact:

Custom Textbox Issue

#1 Post by Zeekee »

Hey all!

So I've been trying to figure out this issue for a while now with no success: I'm working on a game that uses two types of textboxes and, for whatever reason, every time I use a custom textbox, the values keep changing. Here's the code I have for the example character. Every subsequent use of this textbox makes the proportions get worse and worse. Any help would be greatly appreciated!

Code: Select all

define unk = Character('???', color="#ffcc3e", ctc="right_thingy", ctc_position="fixed", window_background="images/GUI/text_box_small_name.png", window_ypos=675, who_xpos=0.1, who_ypos=-5, what_ypos=-10)
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Custom Textbox Issue

#2 Post by Kia »

I can see a possible problem there but I'm not sure if it's the culprit.
in most programing languages =-5 means reduce the value by 5 maybe you should put a space in there who_ypos= -5
if that's not the case maybe some images and more information helps you get a faster answer

User avatar
Zeekee
Regular
Posts: 67
Joined: Wed Jul 23, 2014 10:17 pm
Projects: No One But You, The Anomaly
Organization: Annexe Interactive
Skype: ytmnd111
Soundcloud: zomgaarh
Location: USAF Academy, CO
Contact:

Re: Custom Textbox Issue

#3 Post by Zeekee »

Figured out the root of the issue. I had an extraneous line of code in options.rpy that was throwing everything off. Thanks anyway!
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau

Post Reply

Who is online

Users browsing this forum: Google [Bot]