The Сharacter is red when taking damage

Hello, colleagues. I want to make it so that if a character takes damage, then it is painted red. But it only works on the first hit! It doesn’t work after that( How to fix it?

The problem will be that the damage from most recent hit will always be > 1, unless you have a damage value less than 1. So the first event is only ever triggered once.

Add the condition “Is health just damaged” to the first event. This gets reset and therefore the event’s conditions change, which means the trigger once will fire again next time round.

1 Like

I did it. But it doesn’t work. It stopped turning red. :worried:

Why are you checking enemy health? It should b player health.

It still doesn’t work :frowning:

I put it on after taking damage and it worked! Hurray! Everyone is dancing!

2 Likes