Tween
2025/12/27
- Type
- Learning Resource
- Format
- Glossary Article
- Version
- General
- Subject Tags
- Created
- Updated
- 2026/02/16
- 2025/12/27
A tween (short for in-betweening) is code that smoothly animates changes in properties over time. For example, you can use a tween animation to move a character across the screen, fade an object in or out, or make an item float up and down.
Notice how every item moves at a slightly different pace in this animation, making the animation look natural. Because tweens use code, we can easily change the speed and timing of the animation on the fly. You can also use tweens to animate things dynamically, taking the current state of the game into account.
Godot makes it easy to use tweens with its built-in tween system. You can set up a tween by calling the create_tween() function from a node, then calling functions on the returned object and specifying the object you want to animate, the property you want to change, the target value, and how long it should take.
You can have multiple tweens running simultaneously or chain tweens together to create multi-step animations. You can also use different easing functions to control the speed and smoothness of the animation. For example, you can use an easing function to make an object start moving slowly, speed up, and then slow down again as it reaches its target.
In summary, tweens are a powerful tool for creating smooth, dynamic animations in your games!
Don't stop here. Step-by-step tutorials are fun but they only take you so far.
Try one of our proven study programs to become an independent Gamedev truly capable of realizing the games you’ve always wanted to make.
Get help from peers and pros on GDQuest's Discord server!
20,000 membersJoin ServerThere are multiple ways you can join our effort to create free and open source gamedev resources that are accessible to everyone!
Sponsor this library by learning gamedev with us onGDSchool
Learn MoreImprove and build on assets or suggest edits onGithub
Contributeshare this page and talk about GDQUest onRedditYoutubeTwitter…