#how do you change an object in a ui when the main actor got hurt?

1 messages · Page 1 of 1 (latest)

sly bolt
#

i'm trynna change the animation of the icon on the upper left which acts like a health bar for when the main actor gets hurt

visual echo
#

Hmm I used to remember making another one for this.

meager kite
sly bolt
#

wdym x

#

do i put the hp of the main actor or just x?

unkempt solar
meager kite
#

x represent things

unkempt solar
#

Variables! 1!1!1

meager kite
#

numba1!!1!1!

sly bolt
#

oh ik

#

ok*

#

yo sorry if i have some stuff put on but like this?

meager kite
#

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?

sly bolt
#

i wanna change the stroke for cooler visuals

meager kite
#

loop

sly bolt
#

ohhhhhh

meager kite
#

it will just gonna loop it inf

sly bolt
#

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

meager kite
#

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

sly bolt
#

o

sly bolt
#

cuz when i applied it to my health bar

meager kite
sly bolt
# sly bolt

it just started doing the "hurt" animation (which was the animation in this photo) until i stopped having 150 health

sly bolt
#

nonono the animation only plays everytime the actor gets hurt

#

it's not like a status