Have character move while Message displays.

Started by ian80, Mon 21/03/2005 02:35:06

Previous topic - Next topic

ian80

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?

Candle

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.


ian80

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.


Candle

Look in the help file  under  speech, may find something .

ian80

I've been looking, but can't find anything.

Radiant

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.

Ashen

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.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk