Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ian80 on Mon 21/03/2005 02:35:06

Title: Have character move while Message displays.
Post by: ian80 on Mon 21/03/2005 02:35:06
Okay,

I am going to have a lot of random questions I think, so should I try to keep them all in the same thread? Let me know...

At the moment, I want to to have my character walking across the screen as message displays, but I can't seem to find a funstion that will allow this...all of the 'display' commands halt all script action. Help?
Title: Re: Have character move while Message displays.
Post by: Candle on Mon 21/03/2005 02:41:14
DisplaySpeechBackground (CHARID, string message)

Similar to DisplaySpeech, except that this function returns immediately and the game continues while the character is talking. This allows you to have characters talking in the background while the player does other things. Note that the character's talking animation is not played if this function is used.
This command works by creating a text overlay with an automatic removal time delay. The overlay ID is returned by this command, so you can save it for use later with IsOverlayValid and RemoveOverlay, if you want to remove the text prematurely.

If background speech is already on-screen for CHARID, it will be removed and replaced with the new MESSAGE.

Title: Re: Have character move while Message displays.
Post by: ian80 on Mon 21/03/2005 02:53:42
Yeah, I tried that...but it displays it as speech...I want it to be displayed as a message (ie, white  square at middle of screen)...maybe I'm missing something, but this doesn't seem to be it.

Title: Re: Have character move while Message displays.
Post by: Candle on Mon 21/03/2005 02:57:39
Look in the help file  under  speech, may find something .
Title: Re: Have character move while Message displays.
Post by: ian80 on Mon 21/03/2005 03:05:07
I've been looking, but can't find anything.
Title: Re: Have character move while Message displays.
Post by: Radiant on Mon 21/03/2005 08:00:55
Make a character that's invisible (i.e. having a blank sprite, or set its transparency to 100%) and make sure it's in the room. Then give it a speech view that is also invisible. Then have that character speak. Workaround, yes, but should work.
Title: Re: Have character move while Message displays.
Post by: Ashen on Mon 21/03/2005 12:02:22
Or if you really want it to look like a Display() message, in the little white box, you could make your own GUI and a custom function (DisplayBackground() for example) to simulate it. Shouldn't be too hard, and might be better in the long run than having to use a work around.