Setting colors to sprites for strategy game

0 favourites
  • 3 posts
From the Asset Store
Full game Construct 2 capx code source to post on Google Play
  • In strategy games, be it turn-based or real-time, you might have 2 or more teams fighting each other using the same units. Each unit has its team color.

    So I was looking around the forums with the keyword "palette swap" or the like, turned out I found the following: : posted almost a year ago, and leaded to the plugin here: But it's not for a single sprite...? : but this is for C1

    So do we have this feature in vanilla C2 yet?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You basically have 2 options:

    1. Manually recolor each sprite in Photoshop or something, then save these as individual animations for each unit.


    -Works everywhere.

    -Little negative performance impact (provided you are within memory limits).


    -Extremely laborious.

    -More laborious the more colors you want

    -Not very maintainable

    -Uses up a lot of graphics memory.

    2. Use a WebGL effect (Adjust HSL or Tint)


    -Easy to do

    -Uses little graphics memory

    -Very maintainable

    -More color choices than you will ever need


    -Doesn't work everywhere, only works where webGL is supported.

    -Shader effects are hard on the GPU, especially at high resolutions

    I would roll with the second option, but if mobile development is important to you that may not be an option (although option 1 won't be very viable either as phones have very limited graphics memory).

  • Another solution might be to keep the units looking the same, but add a token or flag or some other item to the unit base (eg: a platform) or something indicating what team they are part of. Lets say you had a tank, and it was sitting on a red circle. That circle would be much easier to deal with changing its color than re-coloring the actual unit. So you could approach it that way as well.

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