How do I pick and replace colors on object creation

0 favourites
  • 1 posts
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)