Change specific/one color on a paper2d sprite
I have a paper2d sprite that has brown boots, and when I equip other boots they are supposed to change color, so I figured I would create a material for each color, or create a dynamic material that would do this. After two days of not fully grasping materials, I decided to just create flipbooks for everything, but then I remembered why I wanted to create a material in the first place. I no longer have any of the material blueprints because I deleted them after deciding to switch to flipbooks, but I remember I tried a lot of lerping, and the closest I got to replacing just one color was changing the body to black and the face to white. Not good is it?
Can anyone help me figure out how to replace one specific color on a paper2d sprite/texture in materials? I have seen a few posts on this already, but none of them work on a paper2d sprite.
asked Oct 25 '16 at 07:30 PM in Blueprint Scripting
You need a mask (black and white image not grayscale) flipbook texture where only the boots are white, and everything else is black.
Then you can that as the alpha in your lerp node. Then you can connect your original flipbook to the A input, and multiply your flipbook by a color and connect it to the lerp B input.
answered Oct 25 '16 at 08:26 PM
so have you figured how to apply it to all sprites yet?
answered Aug 04 '18 at 09:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here