How do i make flash for enemies when take damaged?

So… i need some help , what i want is when enemies take damaged it will blink or flash to all white for a second but i don’t know how to do it. i already try may way but it doesn’t work espacially FlashColor Behavior. i set it to flash white but it didn’t but then iset it to others color it flash to that color ven though the color is not right. i think system think my sprite is white color but it’s not , my slime is blue… HELP!

You see issue is all that crap you have tried out is TINTING

You are NOT changing color you are adding colors to existing colors
So if you have blue object and you add yellow to it you will get green
At the same time adding green to it will not change it to green
Same way you cannot get green out of blue object

You need to revert to using effects and to be precise one called ADJUSTMENT

Hold space you can hold it and walk after you land
WASD

NOW with this

You get this gd.games game build

And with this
Difference from above is that in above link contrast is 1 and here its 0

You get this

SO

Brightness always needs to be 5
Contrast can be 1 or 0 depending on what you prefer
Yet i did not test 1 on every color so maybe i just have such colors on my player so that they are white and outlines stay black

This extension can help:
https://wiki.gdevelop.io/gdevelop5/extensions/flash/#flash-effect

1 Like

Edit part
I just realized you are not suggesting this extension as it can flash white
But control with it the effect itself
So instead of making logic to turn effect on and off
We can use that extension to manipulate state of the effect

Original message below

Unless i am missing something this extension is flashing opacity
And not allow you to flash to white

Maybe something changed but last time i used it like over a year ago it was only opacity

And OP is asking about flashing something to white
And flashing is not the issue as i understand but color change itself

Like issue is not to change something visually when it was damaged
But issue is to WHAT visually it changes and it should change to white
And so far adjustment effect was only way to do it

Oh Jeez! that’s work on me! thx so much i use flash effect with brightness 5 and contrast 1-0 Swap for each other and then Miracle happen love you :]

and again i have another problem lol. i use that effect and turns out it white since the beginning of the scene what i want is use effect when conditions are true…

You have what?


Oh i see. Got it thx it’s work so well now… and i have more problem again (again). so i need to put Time indicator show on screen but it’s not quite match up with my screen and i use “Extend width or height to fill screen” so i don’t know how to fix it, and i’m so worry about when others people play my game i don’t know it will fit on theirs screen or not…

This is not related to this topic
So make a new one

okay thx again imma make a new one