Hello, so i’m trying to put my GUI into this game and have it compatible on all devices. i set it all to X so that it doesn’t move around. Issue is, it squishes and looks wierd. I know other games have done this correctly such as bee swarm simulator & bubblegum simulator, but it just doesnt seem to work for me.
Here’s what im dealing with:
please, if you know a tutorial on how to fix this or just know how to fix this, please tell me. i’d love to get this fixed
1 Like
This is because you’re using offset and not scale. If you put to use the objects Roblox has made, UIAspectRatioConstraint, etc you can make it compatible for most if not all devices.
1 Like
i’m pretty sure i’ve set it to scale, hence why it doesn’t move around, could you elaborate?
Even if you just use the SizeConstraint property on UI elements, you can make it scale based off the XX or YY rather than XY so it will always be a square.
now the position changes even tho i got it set to scale
What’s your AnchorPoint set to?
my anchor point is set to (0.5,0)(0.5,0)
Depending on what axis you’re using to set your size, that will affect the positioning a little bit.
my axis is set to YY, what am i supposed to set it to?
What does your UI look like? If it just got shifted over, you should just be able to shift it back.
Why not set the AnchorPoint to 0, Y so it just snaps to the left side for each of the items inside.
how would it “snap to the left side”? i’ve set it to 0,0.5 and it doesnt work
If the AnchorPoint is 0,0.5 and then the x scale of the Position is 0, it would just go based off the left side.
Wait is that just an image of all those things and not individual pieces?
yep, it’s one image, if need be i can make them individual but
That is 110% your problem and why it doesn’t scale properly.
Why are you making it one image and not making buttons w/ an image for each?
well i made the UI in photoshop so i didnt see an issue with having them like this, sorry for wasting your time. thanks for the help!
No worries. Typically people just make a circle or rounded square then 9-slice it to make the buttons.