Text Drop Shadow? (Solved)

Started by alisa_tana, Sun 14/09/2008 21:47:21

Previous topic - Next topic

alisa_tana

I've found http://www.adventuregamestudio.co.uk/yabb/index.php?topic=30457.0  about changing the Color of the text outline... but is it possible to change how the text_shadow (outline) is drawn?

Or for that matter just changing the width of the outline.

I assume by default it's drawn by creating duplicates (in the shadow color) and offsetting the text by 1 and -1, but I'd like to make it appear more like a drop shadow, so that it's 2 and -1  (if that makes any sense)

Mazoliin

The most simplest way is probably to draw the outline yourself, either with the AGS Font Editor or SCI studio.

alisa_tana

Except I'm not using a SCI font...(I have font creator tho) and doing it for ALL those letters is a pain in the butt...especially since I'm planning on using two fonts.

Lt. Smash

#3
You could make use of DrawingSurface.DrawStringWrapped.( supported by AGS 3.0.1 or higher)
First draw the black shadow text (for longer shadows you have to repeat this step)
and on top of it, with a proper offset, draw the normal font.
Then you would have to create your own Character.Say or whatever you are using but it should be doable.

alisa_tana

I think I got it... except for one small thing I know is basic...

I'm using 800x600 resolution, but the x and y seem to be for a smaller res, so setting the text at 10,10 and 11,11 make them actually two pixels away from each other.

Gilbert

Yes. That is a limitation, unless you use the latest beta version of AGS, which is not officially released yet.

alisa_tana

Ah, yeah I remember reading about that.

I figured out a work around tho... if I do the automatic outline along with a single drop shadow offset by 1, it gives me the effect I'm looking for.

Thanks everyone.

SMF spam blocked by CleanTalk