What is a tween?

Definition of a Tween

In the context of game development, a Tween, short for 'in-betweening', is a method used to smoothly interpolate or transition between two values over a certain period of time.

How Tween Works

It's used to animate properties of game objects such as scale, rotation, position, or color. The Tween object typically takes in a start value, an end value, and the duration of the transition. It then calculates the current value at each frame, resulting in a smooth transition.

Tween vs AnimationPlayer in Godot Engine

Tween is more flexible and can animate almost any property individually while an AnimationPlayer is more powerful and can animate many properties simultaneously but requires animations to be pre-configured.