Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Fabiano on Fri 02/12/2005 21:44:13

Title: Tinting character with diff colours
Post by: Fabiano on Fri 02/12/2005 21:44:13
Heya. I was wondering if there is a way to make the same character graphic with several colors, like BG games, when you have the same sprite in diff characters with diff colors, without needing to color everyone by hand using wildcard colors, something like:
c.Ego.color(X,Y,Z,..); // you tell that the 3 wildcard colours are X,Y and Z

example:
(http://www.academiabahamut.com/images/Image3.jpg)

Title: Re: Tinting character with diff colours
Post by: Rui 'Trovatore' Pires on Fri 02/12/2005 22:23:19
Well, you can mess around with the palette, and maybe some individual slots... or something.
Title: Re: Tinting character with diff colours
Post by: HeirOfNorton on Sat 03/12/2005 01:09:35
You could also mess around with Character.Tint, though that will tint the entire character, not just specific parts of it.

HoN
Title: Re: Tinting character with diff colours
Post by: Gregjazz on Sat 03/12/2005 01:49:14
Unless you were very clever and came up with a way of having separate graphics for each part of the character... then you could individually change the tint...

Or you could have a mask-like image that is drawn over the character...
Title: Re: Tinting character with diff colours
Post by: Redwall on Sat 03/12/2005 04:14:20
Quote from: Geoffkhan on Sat 03/12/2005 01:49:14
Unless you were very clever and came up with a way of having separate graphics for each part of the character... then you could individually change the tint...

That's how RPGs like Diablo, etc do it.
Title: Re: Tinting character with diff colours
Post by: Rui 'Trovatore' Pires on Sat 03/12/2005 09:59:06
It's not impossible, that... I mean, with character.followExactly (or something) stuff like this is actually achievable.
Title: Re: Tinting character with diff colours
Post by: Fabiano on Sat 03/12/2005 12:08:08
nice. I'll try using masks and tint.
Thankx folks