#how do you change an object in a ui when the main actor got hurt?
1 messages · Page 1 of 1 (latest)
Hmm I used to remember making another one for this.
When created
Inf Loop
If main actor current health = x
execute self animate = animation
or else
execute self animate = animation
X can be anything, so yeah you can change that to the HP
Variables! 1!1!1
numba1!!1!1!
start animation should be blue
remove the sfx
stroke size is related?
you really want when 150 hp, stroke will be red?
now when look closely, what do that stuffs do?
i wanna change the stroke for cooler visuals
ohhhhhh
it will just gonna loop it inf
but i wanna keep it
i just wanna find a trigger for when the main actor gets hurt
i tried using broadcasts but uhh
didn't work
broadcast only work on where it send
if it send on ui, it will work on the ui
if it send on the map, it will work on everything in the map
o
wait what's this really for?
cuz when i applied it to my health bar
ui appearance changed
it just started doing the "hurt" animation (which was the animation in this photo) until i stopped having 150 health
use "< or ="