Tinting character with diff colours

Started by Fabiano, Fri 02/12/2005 21:44:13

Previous topic - Next topic

Fabiano

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:


Yeah, yeah, It happens. A lot.

Rui 'Trovatore' Pires

Well, you can mess around with the palette, and maybe some individual slots... or something.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

HeirOfNorton

You could also mess around with Character.Tint, though that will tint the entire character, not just specific parts of it.

HoN

Gregjazz

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...

Redwall

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.
aka Nur-ab-sal

"Fixed is not unbroken."

Rui 'Trovatore' Pires

It's not impossible, that... I mean, with character.followExactly (or something) stuff like this is actually achievable.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Fabiano

nice. I'll try using masks and tint.
Thankx folks
Yeah, yeah, It happens. A lot.

SMF spam blocked by CleanTalk