Hello everyone, I got a frivolous feature in my game I want to include, but I have no clue where too start with making my own javascript.
Basically, in my game, I want to have a feature that allows the player to change certain colors on the characters, for example one of them has red hair, and I'd like them to be able to change it to say, blonde, brown, or even blue or green if they want. However not just the hair, but their shirts, pants, shoes, vest etc.
So I'm thinking the easiest way to do this would be to have a filter that could read a color like say, 129, 183, 89, (Green) and instead display it as something like 255, 128, 0, (Orange). Furthermore, this must effect pictures as my game uses a ton of them.
Now, like I stated above, I got no clue where to start, like I don't know how to get the game to select a color, or even change it into another color. If anyone could give me some pointers or if possible a link if someone has done this already, it would be very much appreciated. Thank you very much.
Basically, in my game, I want to have a feature that allows the player to change certain colors on the characters, for example one of them has red hair, and I'd like them to be able to change it to say, blonde, brown, or even blue or green if they want. However not just the hair, but their shirts, pants, shoes, vest etc.
So I'm thinking the easiest way to do this would be to have a filter that could read a color like say, 129, 183, 89, (Green) and instead display it as something like 255, 128, 0, (Orange). Furthermore, this must effect pictures as my game uses a ton of them.
Now, like I stated above, I got no clue where to start, like I don't know how to get the game to select a color, or even change it into another color. If anyone could give me some pointers or if possible a link if someone has done this already, it would be very much appreciated. Thank you very much.