Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: alisa_tana on Sun 14/09/2008 21:47:21

Title: Text Drop Shadow? (Solved)
Post by: alisa_tana on Sun 14/09/2008 21:47:21
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)
Title: Re: Text Drop Shadow?
Post by: Mazoliin on Mon 15/09/2008 15:48:19
The most simplest way is probably to draw the outline yourself, either with the AGS Font Editor or SCI studio.
Title: Re: Text Drop Shadow?
Post by: alisa_tana on Mon 15/09/2008 16:41:58
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.
Title: Re: Text Drop Shadow?
Post by: Lt. Smash on Mon 15/09/2008 20:19:43
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.
Title: Re: Text Drop Shadow?
Post by: alisa_tana on Tue 16/09/2008 04:11:04
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.
Title: Re: Text Drop Shadow?
Post by: Gilbert on Tue 16/09/2008 05:10:24
Yes. That is a limitation, unless you use the latest beta version (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=35028.0) of AGS, which is not officially released yet.
Title: Re: Text Drop Shadow?
Post by: alisa_tana on Tue 16/09/2008 06:05:21
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.