less confusing undo animation

This commit is contained in:
mehbark 2025-05-05 17:31:05 -04:00
parent 66314ebe4c
commit bf4739f238

View file

@ -94,6 +94,9 @@ func do_move(move: Vector2i) -> Callable:
func undo_move() -> Callable: func undo_move() -> Callable:
var old_pos := lpos var old_pos := lpos
return func(): return func():
for tween in tweens:
tween.kill()
position = target_pos()
lpos = old_pos lpos = old_pos
tween_to_target() tween_to_target()