ShubaPonCR
(ShortPeople Saver)
September 9, 2023, 8:40am
#1
Im basically making a GUI system that uses UIListLayout
In frame1 there is a UIlist with the imagebuttons, and on frame2 is where the clones are put so they can be tweened.
However, i cant seem to get the imagebuttons in the same position (frame1 and 2 have the same size, anchorpoint and position)
Code:
Does frame2 also contain an UIlist?
There’s a chance that the UIlist in frame1 changes the position slightly, check the properties of UIlist.
I think it’s because image buttons and frames have different anchor points relative to its size
ShubaPonCR
(ShortPeople Saver)
September 9, 2023, 8:27pm
#4
No, it doesn’t
This is what it looks like at the moment, with the math above
ShubaPonCR
(ShortPeople Saver)
September 10, 2023, 12:38am
#6
Managed to find a solution
I am also confused by this. The behavior you’re describing can be achieved with the following code:
local gui = ... -- some GUI
local desiredAbsolutePosition = -- some Vector2
local relativePosition = desiredAbsolutePosition - gui.Parent.AbsolutePosition
gui.Position = UDim2.fromOffset(relativePosition.X, relativePosition.Y)
system
(system)
Closed
September 24, 2023, 12:38am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.