SetCharacterFont(FRA, 4) ??????? [SOLVED]

Started by YotamElal, Sat 05/03/2005 13:57:32

Previous topic - Next topic

YotamElal

Is there anyway to do this...
SetCharacterFont(NPC, 4); ?? ???????

Ashen

You probably know SetSpeechFont (font), but that changes all characters to that font. If you want different characters to have different fonts, you need to call SetSpeechFont (font) before they speak (and again after to set it back). Of course, you could create a function to do this automaticaly.
I know what you're thinking ... Don't think that.

YotamElal

Thats a problem cuz it is background speech so if main player talks at the same time it will change his font to.

:o(

Ashen

#3
That might be a problem, yes. However - your NPC says things on a timer, right? (like every 30 seconds, or every minute, IIRC).

I think that, if you have the player say something, and set the font before that, it'll clear the background speech off the screen before displaying the new speech. It'd be a problem if you want the NPC speech to still be visible, but since it's just background stuff, it (hopefully) shouldn't be that big a deal.

EDIT: As I (kind of) said, it's probably be easier to write a function to change fonts for you, and you could write one for DisplaySpeechBackground too.
I know what you're thinking ... Don't think that.

Scorpiorus

Yeah, setting a font on per character basis is not currently supported but there is a tracker entry so hopefully it'll come one day: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=242 ;)

SMF spam blocked by CleanTalk