123456789101112 |
- extends Tween
- export var duration = 1
- const far_away = 4000
- func swap_out(node):
- interpolate_property(node, "position:x", null, far_away, duration, Tween.TRANS_QUAD, Tween.EASE_IN)
- start()
- func swap_in(node):
- interpolate_property(node, "position:y", null, 0, duration, Tween.TRANS_QUAD, Tween.EASE_OUT)
- start()
|