0 votes

I have a Sprite with Tween added.

And when I change the parent of the Sprite, the Tween stops.
Even if it is added to the same parent again, it is reset, so I think there is a process to stop Tween in removechild or addchild.

If the conditions below are not met, many parts of the code need to be modified.
1. Tween is a child of Sprite.
2. You need to change the parent after Tween.start().

var item = Sprite.new()
item.texture = preload("res://sprite.png")

var t = Tween.new()
t.interpolate_property(item, 'scale', Vector2.ZERO, Vector2.ONE * 5, 1)


I searched for a long time but couldn't find the answer. Help!

Godot version 3.3.3 stable
in Engine by (18 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.