tween send complete signal, but didn't animate

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hsjaaa

I want to use the tween to animate some tiles fall from their position to another position, here is the code I use:

for tile in fallingTiles:
    self.fall_tween.interpolate_property(tile, "position.y", tile.position.y, tile.GridY * self.offset + self.y_position, 1, Tween.TRANS_BOUNCE, Tween.EASE_OUT)
self.fall_tween.start()
yield(self.fall_tween, "tween_completed")
print("falling complete")

the fall_tween is a child node and is loaded by onready var fall_tween = get_node("fall_tween")
It did print the "falling complete", I also checked the start position and finish position, is not same, but my tile didn’t move.

:bust_in_silhouette: Reply From: volzhs

use "position:y" instead of "position.y"

It works, thanks!

hsjaaa | 2019-01-28 04:19