[EFFECT] Color Replace

This forum is currently in read-only mode.
From the Asset Store
Gather the balls with the same color and earn as much score as you can!
  • What it does:

    Replaces one color with another.

    How to use it:

    The "old" parameters define the color to be replaced, and the "new" parameters define the new color. Values are in the range from 0 to 255.


    Download "Color Replace.fx" and place it inside the effects folder.


    Color Replace.fx



    New version that works with transparency, thanks to tulamide

  • Awesome. Say, would it be possible to have it float4_int instead of 1?


    Original Color | R,G,B

    Replacement Color | R,G,B

    In the event editor, you would have

    Set Original Color

    Set Replacement Color

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I only found this effect now and wanted to thank R0J0hound for it. I really needed a way to replace specific colors of sprites for my project instead of having multiple clones with different colors.

    This will come in very handy.

  • It is just great, but I need to know how can I access the actual source color of a sprite to interpolate it between the source and the target, something like:

    set effect parameter(0) to lerp(self.effect(ReplaceColor).RSource, self.effect(ReplaceColor).RTarget, time)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)