Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Meystari F on Mon 07/10/2019 17:06:28

Title: How can I display 2 messages in same time? (Solved)
Post by: Meystari F on Mon 07/10/2019 17:06:28
Does any of you know the code for displaying  2 messages in same time in the game?  Or is that not possible?

What I mean I don't want the second message display after the first message. I want the second to appear with the first message together in same time.

Display("Hello, Who are you?");
Display("What is your name?");


Title: Re: How can I display 2 messages in same time.
Post by: Crimson Wizard on Mon 07/10/2019 17:14:56
Not with Display function, only if you create custom messages using Textual Overlay, or GUI with label on it (Two GUIs with a label or one GUI with two labels).
Title: Re: How can I display 2 messages in same time.
Post by: Cassiebsg on Mon 07/10/2019 17:19:57
Display("Hello, Who are you? What is your name?");

Or

Display("Hello, Who are you?[ What is your name?");
Title: Re: How can I display 2 messages in same time.
Post by: Meystari F on Mon 07/10/2019 17:31:47
Hahaha

I found it out how to do this.

And here is the solution if any of you want the code.

 
Code (ags) Select
Overlay* myOverlay = Overlay.CreateTextual(100, 20, eFontNormal, Game.NormalFont,0, "Hello who are you?");
Wait(40);
Display("What is your name?");

myOverlay.Remove();


Case closed.