跳到主要内容

Tween类的使用

通过set_parallel()方法,使多个动画并行执行

var tween = create_tween().set_parallel(true);
tween.tween_property(self, "position", Vector2(0, 0), 1.0, Tween.TRANS_LINEAR);
tween.tween_property(self, "rotation", 0, 1.0, Tween.TRANS_LINEAR);