![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | exuin |
I want the user to be able to select colors for the character’s sprite, like for skin, clothes color, etc. Preferably with the color picker, but if that’s not possible I guess I could show a bunch of pre-picked colors. How would I be able to do this? Right now I’m using self_modulate
but that only works for the entire sprite, not separate parts of it.
Thanks for the response, but I’m not really sure how I would do any of that in Godot. I don’t really see any mapping properties for a TextureRect
. Or should I be using a Sprite
instead?
exuin | 2020-09-21 19:31
ya i do it by splitting a sprite into different parts now but recently found this possible alternative…
from what i can tell if you just color your original sprite with specific shades of gray (or even colors) you can replace those specific colors with any color you chose using a shader. eg light gray = red, dark gray = blue, gray = orange
these related videos might help
https://www.youtube.com/watch?v=CLqMcgDi--Y
https://www.youtube.com/watch?v=i7VljTl4I3w
rakkarage | 2020-09-21 23:08
Thanks, I’ll probably write a shader to replace different colors in the sprite.
exuin | 2020-09-22 02:49