How to stop imagelabel from moving

so i made next set of object
image
image
the names speaks for themselves. originally i thought that i can just make a script that will resize redcropframe to make it lower as player hp goes down so the red thing would get cropped, but reality is more miserable as when i resize it this happens. is there a way to stop imagelabel inside of this frame from moving?
image

thats what i want to achieve it being cropped, with a condition of giant white cube being transparent

image

1 Like

Hey, you can go to properties and change the ScaleType to crop and play around with the ImageRectSize or ImageRectOffset to set the “crop point”. Hope this helps.

what if i make a script that would move imagelabel up and frame down? this way image will stay in place as frame movement compensates movement of the image, and at the same time image will hide under the frame

The image would be above the frame. I mentioned that you can set the ScaleType to crop and scale the image down as you lose health.

yeah that seems to help but there is 1 problem.
image
if i resize it from bottom then everything is good, but if i resize it from top then this happen
image
you really helped me at this point but if yk how to fix this

Keep playing around with the ImageRectSize until you get something that works.

1 Like