#How can I Make Tweening UI feel extremely nice, like those AAA games

1 messages · Page 1 of 1 (latest)

icy bison
#

Whats the best way to Tween GUI? I have tried tweening it but it doesnt really feel so good?
Idk whether I'm doing it wrong but it just doesnt feel like those Nice AAA games' UI.

local VlButton = script.Parent
local Uicorner = Instance.new("UICorner", VlButton)

local VlFrame = game.Players.LocalPlayer.PlayerGui.Voicelines.VLFrame
VlFrame.Visible = false
local framevisible = false

local ClickSound = Instance.new("Sound", VlButton)
ClickSound.SoundId = "rbxassetid://9120102442"
ClickSound.Volume = 0.5

local MouseEntersound = Instance.new("Sound", VlButton)
MouseEntersound.SoundId = "rbxassetid://9120102442"
MouseEntersound.Volume = 0.7
MouseEntersound.Looped = false

local Ts = game:GetService("TweenService")

VlButton.AnchorPoint = Vector2.new(0.07, 0.5)
local OriginalSize = VlButton.Size
local goal = {Size = UDim2.new(0.010, 215, 0.015, 52) }
local goal2 = {Size = OriginalSize}



VlButton.MouseEnter:Connect(function()
    VlButton.BackgroundColor3 = Color3.fromRGB(247, 255, 94)
    Ts:Create(VlButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), goal):Play()
    MouseEntersound:Play()
    
    VlButton.MouseLeave:Connect(function()
        VlButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
        Ts:Create(VlButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), goal2):Play()
    end)
end)

VlButton.Activated:Connect(function()
    ClickSound:Play()
    framevisible = not framevisible
    VlFrame.Visible = framevisible
end)


#

How can I Make Tweening UI feel extremely nice, like those AAA games

#

Whats the best way to Tween GUI? I have tried tweening it but it doesnt really feel so good?
Idk whether I'm doing it wrong but it just doesnt feel like those Nice AAA games' UI.

harsh zealot
# icy bison Whats the best way to Tween GUI? I have tried tweening it but it doesnt really f...
icy bison
#

Apart from those?

harsh zealot
peak gulch
#

lerp

harsh zealot
icy bison
#

than Ts>

dusty lodge
#

Either tween it or use spring

noble swift
dusty lodge
#

Although tbh they will look the same

peak gulch
icy bison
#

Linear Interpolation = Lerp, Why not Litp

peak gulch
#

also TweenService:GetValue

icy bison
#

Tried using it in code but didnt really find it useful?

peak gulch
#

that conforms to the easing style and direction you give it

#

its so you can do a quadratic interpolation or exponential or cubic

#

or whatever