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.
-
netravelr
- Miko-Class Veteran
- Posts: 504
- Joined: Thu Jan 28, 2010 2:31 am
- Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
- Projects: Love at the Laundromat
- Organization: Lakeview Interactive
- Deviantart: netravelr
- Location: USA
-
Contact:
#1
Post
by netravelr » Tue Nov 22, 2011 5:53 pm
No source code as it's more of a speculative question, but I was wondering if anyone knew of a way to have text similar to this:
Beginning of Text End of Text|
where | is the right aligned part of the message box. I tried doing something like
Code: Select all
ui.text(Beginning of Text{xalign=1.0}End of Text|{/xalign})
but of course that doesn't work.
I was thinking of a hacky way to do it by creating another line with the position in the previous line's Y pos but I don't know how to access that variable as well. Any ideas?
Last edited by
netravelr on Wed Nov 23, 2011 1:12 am, edited 1 time in total.
Technical Designer/Programmer
Game Design Portfolio - Project updates on my
Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Wed Nov 23, 2011 12:50 am
There isn't a way to do this with a single Text. You could do:
Code: Select all
hbox:
xfill True
text "Foo"
text "Bar" xalign 1.0
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
netravelr
- Miko-Class Veteran
- Posts: 504
- Joined: Thu Jan 28, 2010 2:31 am
- Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
- Projects: Love at the Laundromat
- Organization: Lakeview Interactive
- Deviantart: netravelr
- Location: USA
-
Contact:
#3
Post
by netravelr » Wed Nov 23, 2011 1:08 am
That's exactly what I was looking for. Thanks so much!
Technical Designer/Programmer
Game Design Portfolio - Project updates on my
Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."
-
Kazhuto
- Newbie
- Posts: 15
- Joined: Thu Apr 24, 2014 10:31 am
-
Contact:
#4
Post
by Kazhuto » Sat Apr 26, 2014 12:20 pm
where i should put this code in ? option ? screen ? script ?
Users browsing this forum: Bing [Bot]