Trying out the current build of GD4. I think I found a bug but I wanted to confirm before I report it.
In this sloppy code the tween tw2 is suppose to run after the tw1 tween but they run at the same time. I use a callback to an anonymous function to start the next tween. Note that if I use await tw1.finished this works
var cr : ColorRect = ColorRect.new()
var hd : ColorRect = ColorRect.new()
func _ready():
cr.color = Color.CRIMSON
cr.rect_size = Vector2(500, 500)
hd.rect_size = Vector2(0, 50)
hd.rect_position = Vector2(50,0)
add_child(cr)
add_child(hd)
var tw1 : Tween = create_tween()
var tw2 : Tween = create_tween()
tw1.tween_property(cr, "rect_size", Vector2(50,50), 2)
tw2.tween_property(hd, "rect_size", Vector2(250,50), 2)
tw1.tween_callback(func(): tw2.play())
tw1.play()