I am trying to make a Rolling Gui for pets (Similar concept for lootboxes and spins). I’m using a ScrollingFrame and tweening its CanvasPosition
property to a specific number to simulate a spin.
Problem: When CanvasPosition
is set to (100, 0) for example, the position of the canvas never stays at one point because it is always relative to the current ScrollingFrame size. But I want the CanvasPosition to always remain in one position.
Example:
The Green Pet is supposed to be rolled by the player. But when the player has a slightly different screen size it will appear as if the player has rolled a different pet altough the CanvasPosition
stays the same in both cases.
I want that the pet in the green area will ALWAYS be drawn by the player, independent from the players screen size or the size of the ScrollingFrame.
Can anybody help me with this?