Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MrCheminee on Sat 26/12/2009 21:51:33

Title: How to display a second message without the first one dissapearing?
Post by: MrCheminee on Sat 26/12/2009 21:51:33
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 Sat 26/12/2009 21:55:17
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 Sat 26/12/2009 22:13:12
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 Sun 27/12/2009 00:15:58
Quote from: MrCheminee on Sat 26/12/2009 21:51:33
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 Sun 27/12/2009 01:51:13
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 Sun 27/12/2009 01:55:20
Quote from: MrCheminee on Sun 27/12/2009 01:51:13
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 Sun 27/12/2009 03:37:25
Quote from: MrCheminee on Sat 26/12/2009 22:13:122) 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 Sun 27/12/2009 23:27:40
Ah! That's useful! Thank you!