Problems with Overhead Character Text Color [SOLVED]

Started by Recluse, Mon 23/07/2007 00:45:56

Previous topic - Next topic

Recluse

Somehow I'm having an issue with the color of my character's text color.

I'm currently running the current script:

Code: ags

function object1_a() {
  // script for Object 1 (Screen): Look at object
  cEgo.Walk(206, 156, eBlock);
  cEgo.FaceLocation(cEgo.x, cEgo.y + 10, eBlock);
  if(Properties.GetPropertyAsBoolean(eProperties_Character, 0, "isChemist") == true)
		cEgo.Say("It's the display for the Spectrometer.");
	else
		cEgo.Say("It's the display for something that's beyond my field of expertise.");
}


Whenever the text "expertise" displays over my characters head. A portion of it will appear to be transparent like so:



This is also happening with a different script when my character says the word "expertise". So far this hasn't happened on any other character.Say commands I've been using.

For the life of me I can't figure out WHY this is happening. I'm rather new to AGS scripting, but not to coding in general, so lay it on me in all it's glory. ;D

This isn't exactly a humongous issue at this stage in development... I just thought I'd post it here so I could get a response now rather than later.


PS: I wasn't sure whether this belonged in Beginners Technical Questions or Technical Issues. Since it seemed to be strictly AGS-related and not a complex coding question I figured I'd post it here.
All your verbcoin are belong to us.

Recluse

Here's a little more info...

Apparently this only happens when the string being displayed contains an 'x'... then the letter x and everything after it will have the weird transparent shadow applied to it...

Now I'm thinking it might be a problem with my font... It's a font I got as part of a font pack from a link I got on this site...

Could someone confirm that this is in fact a font problem and not a scripting problem, and possibly give me suggestions on how to fix it?
All your verbcoin are belong to us.

Khris

We can't see the picture since the server requires to be logged in. Could you upload it to imageshack.us?

Recluse

There... it should be fixed now....

Sorry about that  :-\
All your verbcoin are belong to us.

Ashen

#4
Like you said, it looks like there's a problem with the x.
Which font is it? Also, does it have an outline font, or is it auto-generated? It could be that the 'x' character has an extra blank row that's not in the outline, which throws out the letters after it. If it does have an outline font, try the auto option and see if that does anything. Otherwise, you might have to edit the font yourself. (Radiant's FontEdit program should do the trick - I think it's on the resource page of the main site, or do a search.)

EDIT:
It looks like you used font 10 from the pack here, right? If so, then it's what I said - use the auto outline or fix the font.

In which case I'm not sure where this belongs as it's not really an AGS problem, like you said.
I know what you're thinking ... Don't think that.

Recluse

Yes... I did use font 10 from that pack. I'll try the auto outline. This may only become a temporary font as I'm now considering using my own. I'll have to stare at it for an hour before I actually make my decision though  ;)

Thanks for validating my suspicions and suggesting a solution Ashen! You've been very helpful.  ;D
All your verbcoin are belong to us.

Ashen

If you do go with your own font, the FontEdit link may still be useful.
Anyway, rather than try to find the right place for this, I'll just lock it. If it turns out it's NOT solved, PM me and I'll re-open and move it as needed.

EDIT:
Thinking about it, this probably comes under 'non-scripting basics' which does belong here.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk