#Gradient won't align with vertices that are UI objects?

5 messages · Page 1 of 1 (latest)

lofty thicket
#

I'm trying to make a health bar, the two red circles have vertices on the top and bottom of them, all objects have a group which is for the UI trigger. The vertices are connected to the gradient trigger with their own groups. I'm not sure why the gradient isn't aligning with the vertices once I playtest. This also occurs when I try playing in-game outside the editor.

lofty thicket
#

something else I noticed is that when I playtest, the gradient's position is aligned with the vertices' original x values, and the y values of where the vertices are on the UI but it doesn't move as the vertices move

raw jetty
#

I went with another approach which is using area triggers (area tint or area fade), with the bar being multiple vertical lines

lofty thicket
#

I see, another way I thought of doing it is with a line that scales on the x axis but I don't think the scale trigger can scale incrementally