Setting the Background speech position?

Started by piraatlife4me, Tue 30/12/2003 19:16:59

Previous topic - Next topic

piraatlife4me

Hey AGS Forums,
I just have two quick really easy questions.  How do you set the positon of where the Background speech will be displayed? By default the speech is above its head I need it to be lower that that( but just for this character).  Is there any command in AGS that lets you do this?  Also how do you use the built in AGS game variables? Such as game.bgspeech_stay_on_display how exactly would I set a value to that? And would I put it in the global script or in a individual room script?Any ideas?

Scorpiorus

QuoteHow do you set the positon of where the Background speech will be displayed? By default the speech is above its head I need it to be lower that that( but just for this character). Is there any command in AGS that lets you do this?
Afaik, currently there is no way to change the default position. Nothing prevents you to make use of the CreateTextOverlay() script function though, which makes it possible to display a speech message wherever you want. You need to care of removing of the message of course.


QuoteAlso how do you use the built in AGS game variables? Such as game.bgspeech_stay_on_display how exactly would I set a value to that? And would I put it in the global script or in a individual room script?Any ideas?
Basically, you set the global variables where you need. If the variable is set only once for the game it's practical to put it in on game_start function, example:

function game_start() {

//make the background speech isn't removed when a DisplaySpeech happens
game.bgspeech_stay_on_display = 1;

}

~Cheers

piraatlife4me

Hey it's Scorpius! It's Dan here!  Yeah I just tried to using the CreateTextoverlay command but it didn't really work for me because it pauses the script.  So instead  I just figured if I have to pause the script anyway why not just use a displayspeech command instead so my npc can use his own talking view.   Thanks alot for the help though now I understand  how to use the built in AGS game variables something I have been trying to figure out for a while.  I kept putting them in the wrong places and kept giving me errors in my global script.
Once again you solved my problem!
Thanks alot!
Daniel
Winebarger

Barcik

I have asked for a DisplayBackgroundSpeechAt function recently and CJ has put it on his list.
Currently Working On: Monkey Island 1.5

piraatlife4me

That's good to know Thanks for telling me!

SMF spam blocked by CleanTalk