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.

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.

This is working perfectly in the editor, but in game I can only manage to either show a black border around the sprite, or nothing changes at all. With my limited knowledge/experience of the material editor, I am seriously struggling with details settings/what to connect the last pins to. If I hadn’t spent the last two (soon to be three) days in the material editor, I wouldn’t ask this, but would you mind showing me an image of this setup if possible?

can you post a screenshot of the material, and the result?

I wish I thought of doing that when I replied earlier… I can’t at the moment as I don’t currently have access to the editor, but as soon as I get home tomorrow I will post a screenshot.

I set up a new project just to make sure something else wasn’t interfering, and it turns out it kind of is, but I still can’t get it to work properly anyway. I couldn’t find any flipbook nodes other than the node to create a flipbook, so I used regular texture samples, and I also used a sprite of Simon Belmont as the artist doesn’t want their sprites public. The set up I used was the only way I could get the sprite to not be any of the following: invisible, black border, nothing changed.

The problem in the new project is only part of one boot is the new green (test) color, the real project nothing changes at all.

This is as close (I think) I could get it from your instructions as I couldn’t find any way of using a flipbook instead of a texture sample. Again this is mostly if not all down to my lack of experience with materials. For some reason I thought I’d be able to get away with never using the material editor, and I can honestly say I was as wrong as you could get.

Okay, this actually works perfect on the real project sprites in a new project (something I should have tried in the beginning). I’m guessing because Simon’s feet kind of need redoing it doesn’t look so good, but on the real sprites it’s as perfect as can be. Now I just need to figure out how to apply this to all sprites in a flipbook, and why this doesn’t work in the real project. I really appreciate the help, and I will now mark your reply as the answer.

so have you figured how to apply it to all sprites yet?