Trying to change an object's color map using events

Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.

I have the Color Map effect on a sprite.

But I want it to be able to change after certain inputs, and changing the colorMapTexture property doesn’t seem to work.

My Events:

Before pressing J:

After pressing J:

I never liked color map
BUT i always liked Recolorizer behavior (in behaviors its called SpriteRecolorizer)

I added it to my dino
And i in aseprtie checked color of it


And that is how i know its blue main color in RGB is “77;146;188”
If you don’t have aseprtie use libresprite which is free LibreSprite

Hold CTRL and click on color you want to pick
Then edit > Replace color (or Shift + R) to show window you see in my screenshot

I am using browser which default sites to dark mode so colors are tragic in events sheet


Be aware only 1st action for Epsilon is NUMBER effect
Other two color actions for effects are STRING/TEXT

When i press space one on right changes to red

Now look how its shadow also got changed like blue shadow is replaced to same color
That is due epsilon being too high
I could target that color same as i targeted main color
But look at this
His belly / eyes and (idk name of it) that thing behind his head
Totally untouched

So you can target only what you actually need/want

How about some random colors

I have tried that before, but the effect doesn’t work as well with what I’m doing. And unfortunately, I’m not doing this on a very good computer, so it makes the game run slower.

Cause you cannot run it each frame
Changing color should run with trigger once

I also forgot
image

This is very bad habit
Never put decimals or formulas that return decimals into zoom
It distort pixels

Perhaps youre unsure how the color map works? Can we see your images

I have tried both of the color maps individually and they still work, my events just wont change it for some reason.

Here are my images anyway:

Original sprite:Amonguy

Color maps:

colormapBlue

colormapRed

…wait a minute, why are you going through so much effort to do it how among us did it, when you can just change the sprite? or, tint it and make the visor just another sprite layered perfectly on top?

Because I want to leave some more room for customization. The color maps only take like 2 seconds to make, and I want to see if there were other ways to make a sprite that can change color in three different ways without needing multiple sprites.

I used among us to use as an example, but for my sprites I might use all three different color options. For now I just want to know why the Set colorMapTexture event isn’t working and if there’s a way to fix it.

well…my method doesnt work…?

Hosenstly, I will probably use your method.

I just think that since color maps exist, and they have events that are meant to change the color map, that using them would make changing colors less messy for me to implement. I don’t know why the event isn’t working, and I don’t know if it’s some sort of bug or something, but I want to know if using color maps could be a possibility for me to use in future projects.

I’ve been given a solution, so I will try to implement it.

Should I try and make a bug report about this issue though? Because I don’t see a reason why my current setup shouldn’t work

something i suggest doing that nobody else does when troubleshooting issues in gdevelop, is to press control shift i during a game preview and opening the console tab

I already tried, no errors come up or anything