{ To = to, Duration = 0.9, Ease = EaseType.BackOut };
sprite.Tween(hop);
Structured, readable, reusable
Section titled “Structured, readable, reusable”A tween in tweens.gd is a definition: one object that names the property, endpoints, timing, and easing together. It reads top to bottom, you can name it and start it from any number of places, and you change it in one spot when the motion should feel different. Refactoring and reauthoring motion become ordinary code edits instead of a hunt through scattered call chains.
Choose your language
Section titled “Choose your language”The C# implementation is available in this repository. Start with a project
reference or a locally built tweens.gd package while its first public release
is pending.
using Godot;using tweens.gd;
var arrive = new Position2DTween{ To = new Vector2(400, 180), Duration = 0.6, Ease = EaseType.CubicOut,};
var movement = sprite.Tween(arrive);if (await movement.Completion == TweenCompletionReason.Completed) GD.Print("Arrived");A Godot addon with equivalent tween functionality is planned. It is not available to install yet. Its public API, completion signals, minimum engine version, and supported exports will be documented once implemented and tested.