-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated use of SceneTreeTween causes an endless loop #65891
Comments
It kind of does, but not in an expected way. When you add a new Tweener, it gets added to what you already have. The animation is not reset between runs. What happens in your example is:
Yes, this is what you should do. You should also kill the previous SceneTreeTween if you are restarting animation. This was recently clarified here: #65658 |
@KoBeWi hello,The key problem is that the following line will cause the program to crash:
An
|
Ah I missed it, because it was commented out in your MRP.
|
Godot version
v3.5.stable.official [991bb6a]
System information
win7,gles3
Issue description
Repeated use of
SceneTreeTween
causes an endless loop.I'm going to change all the
Tweet
codes into newSceneTreeTween
, but this problem makes me feel a risk.I'm not sure if
SceneTreeTween
support reuse. But for example, when I want to achieve a screen shake effect, I need to ensure that the last screen shake effect is terminated first. In this way, I must keep the lastSceneTreeTween
every time, and then generate a newSceneTreeTween
, which is counter intuitive.Steps to reproduce
Transformer.zip
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: