Skip to content

[Using Problem] Unknown behavior after a tween #52

Answered by Multirious
zzhgithub asked this question in Q&A
Discussion options

You must be logged in to vote

This is caused by multiple conflicting tweens. There are animation that you have spawned but never removed and so the old animation fights with new one. One way to fix such issue is you can clean up old animation every time it finishes, like in this PR I've submitted for you.

You can learn the entity structure generated from .animation() method in this example. .insert_tween_here may work without having to clean up previous animation because the methods insert the components into existing entity and can replace previous ones whereas .insert method will spawn a child everytime which will require some kind of management.

It may not perfectly fit your use case so you can modify it however yo…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Multirious
Comment options

Answer selected by zzhgithub
@zzhgithub
Comment options

@Multirious
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #51 on April 06, 2025 11:18.