Tilesize/image scaling issue

Hi all,

In the picture below, the orange bar is rounded on the left side but I want it to be rounded on the right side.
I’m using tile scaling, which makes it so that if you set x to 5 for example, it’ll show 1/5 of the image. This means that if you make it 1/5 of the original image size and set tile scaling to 5 it won’t look stretched.

image

Is there any way i can show the last 1/5 of the image instead of showing the first 1/5 of the image?
Or is there another way i can fix it?

Any help appreciated! Thanks! :smiley:

PS: Rotating the image won’t work because the original image is rounded on both sides and if I use tile scaling it’ll still cut out the side on the right with the rounded corner!

Original image:
image

I really am not sure I understand what you need, but can it not be done by using the long orange bar image as background and setting the other 2 with higher Z-index on top of it?

1 Like

Not quite sure what you’re asking. Have you tried flipping the image? I hear setting the scale to -1 flips it.

Thanks both for the replies!

@Kampfkarren Unfortunately you can’t flip the image with tile scaling :confused:

@TaaRt - Thanks for the suggestion! I’ll try something like that but depends on whether I can still keep it from looking stretched (and working with TileSize)!

This is probably your best bet. If you rotate the image then the back flat side will be against the green and then round part will be to the right side. hahaha I’m dumb it’s tile scaling nevermind.

Pretty sure you can slice the image up with the slice option in the image label.

I believe that’s what he did.

You could just set the rotation to 180 degrees

1 Like

Rotate it 180 degree’s, i’m almost 100% certain you can do this, you may have to re-script everything backwards if it is a health bar or something that decreases in size but this should work for you.

Rotating it leads to ClipDescendants not working, which is why I didn’t suggest it.

I’m guessing you want to use 3 different images…
Use the Slice ScaleType and edit the ImageRectOffset and ImageRectSize properties, but you need to know the original image file’s size.

image

Kinda hard to write an explanation without spending a lot of time writing a big long example, so here’s a sample file
slice example.rbxmx (8.0 KB)

OH, and another way is to make 3 frames, set clipsdescendants to true, use slice on your images, make the x size for the images large, and position them

1 Like

@cemetarytree @gillern

@B_rcode - Thank you very much, appreciate it! I’ll take a look at that file but I think that might solve it and be an alternative to the TileSize :smiley: