How do I pick and replace colors on object creation

Get help using Construct 2

Post » Fri May 08, 2015 1:09 am

I cannot for the life of me figure out how to pick all the pixels of a perticular color on a sprite, and change them to a new color.

The idea here Is to create a single npc sprite sheet of animations with areas like exposed skin, hair, pants and shirt all with generic stand in colors ( like varing shades of gray). Then when a npc is actually generated in game, each different shade of gray would change to a color from a preapproved list ( hair color for instance would be changed to brown blonde or black, not just a random green or purple. Shirts pants and skin color would work the same way.

After creation assigned colors could be maintained by UID, or a simular system to the original pick and replace function, if its even possible In the first place.

Ive seen a few ideas on this forum but most of them use a type of mask, which seems to only comenin one flavor, rectangle. Which would be a prolem for overlaps.

So am I crazy and just missing somthing obviouse?
B
4
Posts: 1
Reputation: 204

Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, KTML5, XavierOrionGames and 5 guests