suppose I have my 2d player and he has equipments, like boots, shirts, etc.
I’d like to change the color of those clothes anytime I change them for new ones.
is it possible to change their color?
pseudo-code of what I want:
if (new_equipment == 3){ actual_equipment.changeToColor( R, G, B ); }
for example, I’m using red shirt and I change to blue jacket, then the shirt goes to blue.
thanks
is the red shirt and blue jacket the same sprite?
cause then you just do it to that sprite, you just have to store somewhere the color that the blue jacket represents and retrieve it when you change to “blue jacket”