Tween
Introduction
Code Example - Move Circle X
using StateInterpolationPlugin;
if (Keyboard.Main.KeyPushed(Keys.Left))
{
CircleInstance.Tween(
property: "X",
to: Camera.Main.AbsoluteLeftXEdgeAt(0),
during: 1,
interpolation: FlatRedBall.Glue.StateInterpolation.InterpolationType.Bounce,
easing: FlatRedBall.Glue.StateInterpolation.Easing.Out
);
}
if (Keyboard.Main.KeyPushed(Keys.Right))
{
CircleInstance.Tween(
property: "X",
to: Camera.Main.AbsoluteRightXEdgeAt(0),
during: During(1),
interpolation: FlatRedBall.Glue.StateInterpolation.InterpolationType.Bounce,
easing: FlatRedBall.Glue.StateInterpolation.Easing.Out
);
}Code Example - Zoom Camera with Delegates

Code Example - Lambda Assignments

TweenAsync

Tweening vs. Velocity values
Last updated
Was this helpful?