Small question?

Can anyone tell me the error in this part of code and why does not it work?

Thanks for any answers.

Condition 3 : ??? what do you want do ? if the healthbar is laready on scene, no need to fix it .X() and .Y() “always”

You should do HealthBar().width() = Variable(player_health) instead… so if healthbar width = 100 (like variable) at start, it will reduce on other triggers.

Maybe you want to do something like:

Also, check your event 4, you use the expression “Variable(player_health)”, but your variable is “PlayerHealth”, GD is case sensitive… and underscore sensitive too :wink:

Thanks for the help I managed to solve.