+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?

in Engine by (484 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
by (440 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.