Aligning text objects to the left

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
User avatar
Posts: 61
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

Aligning text objects to the left

#1 Post by Zeekee » Sat Jul 07, 2018 6:56 pm

I've been struggling with trying to figure out how to align multiple lines of text to the left. I've built a terminal emulator for use in my game, but for some reason, whenever I use '\n', the following line of text will appear centered just below the first line. This is the code I have currently for the transform:

transform terminal_text:
#text_align 0.0
xanchor 0.0
xalign 0.0
yalign 0.0
xpos 1070
ypos 160

I'm using the text within the script, too (which is where I'm getting the errors). Here's an excerpt:

show text "'%(command)s!': Invalid command. For a list of \navailable commands, please type 'help'." at terminal_text

I've also tried using text_align, but it doesn't appear to want to work for me. Any help would be much appreciated!
"When people sometimes misquote me, I don't know if they understand what I'm saying."
-Tommy Wiseau

User avatar
Eileen-Class Veteran
Posts: 1433
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy

Re: Aligning text objects to the left

#2 Post by xavimat » Sun Jul 08, 2018 9:24 am

Try text_align 0.0
"show text" centers the text. Maybe you can show your terminal text as a nvl character. Or create a screen.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: descarga8, Wendyd24