I’m trying to use a UI Framework called Fusion,
In the framework it has a custom tweening module which I can’t figure out…
-
What do you want to achieve?
I want to tween certain properties with the in-built State object function -
What is the issue?
Instead of tweening the ‘Position’ property, It changes the value instantly.
video: -
What solutions have you tried so far?
I’ve copied the exact same setup as the tutorial, No resultsCode bits attempted: {
Position = _G.Fusion.Tween(position, EASE),
Position = _G.Fusion.Tween(position, EASE):get(),
Position = position,
Position = position:get()
}
Source:
_G.Fusion = require(Client.UI.Fusion)
_G.UI_Screen = script.Parent.UI_Screen
local UI = Client.UI
local Components = UI.Components
local Buttons = Components.Buttons
local Frames = Components.Frames
local EASE = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local position = _G.Fusion.State(UDim2.fromScale(0.25, 0.25)) --Tween state
_G.Fusion.New "Frame" {
Name = ("test"),
Parent = script.Parent.UI_Screen,
Position = _G.Fusion.Tween(position, EASE), --Set tween
Size = UDim2.fromScale(0.5, 0.5)
}
position:set(UDim2.fromScale(0.4, 0.8)) --Doesn't tween
delay(6, function()
position:set(UDim2.fromScale(0.7, 0.35)) --Doesn't tween
end)
delay(12, function()
position:set(UDim2.fromScale(0.3, 0.5)) --Doesn't tween
end)
Fusion github: Fusion
Any help is appreciated