Two expressions at the same time showing [solved]

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, 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
mihaeru
Newbie
Posts: 15
Joined: Mon Sep 22, 2014 2:00 pm
Projects: working on my first project "Madness in my heart"(VN)
Location: Spain
Contact:

Two expressions at the same time showing [solved]

#1 Post by mihaeru » Sun Feb 26, 2017 8:11 am

Hi, I'm wondering how I can make this twice

Code: Select all

show expression Text(_("Text1"), size=50, yalign=0.05, xalign=0.05, drop_shadow=(2, 2)) as text
and have 2 different expressions showing at the same time in the screen. Thanks for the help.

I know how to have multiple texboxes in the screen but I need it to be expressions and now I'm a bit lost.
Last edited by mihaeru on Mon Feb 27, 2017 12:20 pm, edited 1 time in total.

User avatar
Ocelot
Miko-Class Veteran
Posts: 530
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Two expressions at the same time showing in the screen

#2 Post by Ocelot » Sun Feb 26, 2017 8:20 am

What is wrong with

Code: Select all

show expression Text(_("Text1"), size=50, yalign=0.05, xalign=0.05, drop_shadow=(2, 2)) as text1
show expression Text(_("Text2"), size=50, yalign=0.25, xalign=0.05, drop_shadow=(2, 2)) as text2


Remember: if you show a displayable with same tag, as the existing one, it will replace it.
< < insert Rick Cook quote here > >

User avatar
mihaeru
Newbie
Posts: 15
Joined: Mon Sep 22, 2014 2:00 pm
Projects: working on my first project "Madness in my heart"(VN)
Location: Spain
Contact:

Re: Two expressions at the same time showing in the screen

#3 Post by mihaeru » Mon Feb 27, 2017 12:19 pm

Ocelot wrote:What is wrong with

Code: Select all

show expression Text(_("Text1"), size=50, yalign=0.05, xalign=0.05, drop_shadow=(2, 2)) as text1
show expression Text(_("Text2"), size=50, yalign=0.25, xalign=0.05, drop_shadow=(2, 2)) as text2


Remember: if you show a displayable with same tag, as the existing one, it will replace it.



thanks I will have that in mind for the future, so the "as text" is like the name of the expression, I'm a bit lost because it seems that I can't declare everything the same way I do with variables in Javascript or C# -_-U .

Post Reply

Who is online

Users browsing this forum: Google [Bot], jacobjumper