extends RichTextLabel var tween var selected = true func _ready() -> void: var starting_pos = position scale = Vector2.ZERO tween = create_tween() tween.set_ease(Tween.EASE_OUT) tween.set_trans(Tween.TRANS_BACK) tween.tween_property(self, "scale", Vector2.ONE, 0.25) tween.tween_interval(0.5) tween.set_trans(Tween.TRANS_QUAD) tween.tween_property(self, "scale", Vector2.ZERO, 0.25) tween.tween_callback(func(): queue_free() ) var tween2 = create_tween() tween2.tween_property(self, "position:y", starting_pos.y - 20, 1)