Attention | Topic was automatically imported from the old Question2Answer platform. | |
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.