godotengine / godotengine/godot

SceneTreeTween not work properly when tween one axis with from()

Open
#100,366 1 comment 0 reactions 0 assignees View on GitHub
bug topic:animation
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproduce in Godot 3.5.3( Issue not exist in 4.x)

### System information

Windows10 Pro

### Issue description

When tween "One Axis" with SceneTreeTween with tween_property(self, "position:x").from(), tween looks different and clunky from tween both axis, or without from().

### Steps to reproduce

Create a normal sprite and attach the script:[TweenAxis.zip](https://github.com/user-attachments/files/18127865/TweenAxis.zip)

`if _Tween:
_Tween.kill()
_Tween = create_tween()
_Tween.set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_BACK)
_Tween.tween_property($Sprite, "position:x", 300, 0.3).from(0)
_Tween.play()`

### Minimal reproduction project (MRP)

[TweenAxis.zip](https://github.com/user-attachments/files/18127874/TweenAxis.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.