+1 vote

So my question would be

For example in the street fighter series, you can select a character with a certain button, you get a certain palette,

Would it be possible using shaders to get only a specific colour on a sprite and change it to however you'd like without changing the colour of the rest of it?

asked Mar 25, 2016 in Engine by The_Duskitty (479 points)

1 Answer

0 votes

You don't have to use shader for that.

  1. Create sprite with alpha in places you want to have customized color.
  2. Put a sprite with white at customizable places behind your main sprite
  3. Just modify background sprite base color via modulate parameter
answered Mar 26, 2016 by KRL (428 points)

The problem with this is that these sprites are already premade with colours so it would be a pain in the ass to do this

Then use getpixel() and putpixel() to find and replaces the pixels that interest you

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.