Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: MrCheminee on 26 Dec 2009, 21:51

Title: How to display a second message without the first one dissapearing?
Post by: MrCheminee on 26 Dec 2009, 21:51
Hello everybody, I probably just read over this, but I couldn't find it anywhere.

I would like to add a second message to my first one, like a punchline or something. I am using the SayAt command, but when I use a second SayAt command, the first one just disappears. Is there a way to display both messages, with the second one a few seconds later, in the 'SayAt'style?
Title: Re: How to display a second message without the first one dissapearing?
Post by: Calin Leafshade on 26 Dec 2009, 21:55
Why not have the second say message include the first message too?

so like

first message "Why did the chicken cross the road?"

second message "Why did the chicken cross the road? To get to the Big Blue Cup."
Title: Re: How to display a second message without the first one dissapearing?
Post by: MrCheminee on 26 Dec 2009, 22:13
Well I thought of that, but there are three reasons I didn't go with that.

1) The SayAt command shows the message for a few seconds related to the length of the message. Making the second message including the first would also make the duration longer.
2) The position of the second message is on an other side of the screen, maybe I could work around this if I knew how to include <Enter>'s to my message, so I could also shape the displayed text a bit, but sadly I don't...

3) I also want to use this later in the game when two different characters are completing eachothers sentences, so the second part should have an other color and a whole different location as well.
Title: Re: How to display a second message without the first one dissapearing?
Post by: Dualnames on 27 Dec 2009, 00:15
Hello everybody, I probably just read over this, but I couldn't find it anywhere.

I would like to add a second message to my first one, like a punchline or something. I am using the SayAt command, but when I use a second SayAt command, the first one just disappears. Is there a way to display both messages, with the second one a few seconds later, in the 'SayAt'style?

Only by using cSay.Background or use an overlay based custom function to display speech.
Title: Re: How to display a second message without the first one dissapearing?
Post by: MrCheminee on 27 Dec 2009, 01:51
I've worked it out with the overlay function, thank you!

Title: Re: How to display a second message without the first one dissapearing?
Post by: Dualnames on 27 Dec 2009, 01:55
I've worked it out with the overlay function, thank you!

Good to know!
Title: Re: How to display a second message without the first one dissapearing?
Post by: Khris on 27 Dec 2009, 03:37
2) The position of the second message is on an other side of the screen, maybe I could work around this if I knew how to include <Enter>'s to my message, so I could also shape the displayed text a bit, but sadly I don't...

Quote from: manual
     [  Inserts a new line into the message 
Title: Re: How to display a second message without the first one dissapearing?
Post by: MrCheminee on 27 Dec 2009, 23:27
Ah! That's useful! Thank you!