Menu
CoddyTech

Ease Out

Part of the Game Feel section of Coddy's Godot journey. Lesson 4 of 23.

A plain tween moves at one speed and stops at once. Easing changes the speed along the way, so the motion can speed up or slow down.

tween.tween_property(self, "position", Vector2(480, 265), 1.0).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_OUT)

set_trans picks the shape of the speed curve. Tween.TRANS_SINE is gentle and Tween.TRANS_CUBIC is stronger. Tween.TRANS_BACK goes a little past the end and comes back. Tween.TRANS_ELASTIC wobbles around the end, and Tween.TRANS_BOUNCE bounces.

set_ease says where the slow part goes. Tween.EASE_IN starts slow, Tween.EASE_OUT ends slow, and Tween.EASE_IN_OUT does both. Ease out is the most common. The motion starts fast and slows to a stop.

challenge icon

Challenge

Easy

Make the robot start fast and slow down at the end.

  1. On the tween step, add .set_trans(Tween.TRANS_CUBIC) and .set_ease(Tween.EASE_OUT).
  2. Keep the target and the 1.0 second.

Press Play: the robot shoots off and settles gently on the pad. Then Check.

Try it yourself

extends Node2D

func _ready():
	var tween = create_tween()
	tween.tween_property(self, "position", Vector2(480, 265), 1.0)

All lessons in Game Feel

Practice on your own: Godot playground