Hi! I'm doing a 2D fighting game from 3 years ago. Last weekend I make the decission of porting it from Godot 3.5 to 4.2.
I solved some issues but there's one that I can't realize how to overcome.
My code is full of tweens making characters make moves like jumps, dashes, special moves or parables. When in 3.5 tweens were a node, was easy to cancel a tween doing the parable of jump when the character was attacked on air, and order the tween to do the backward fallbak movement.
But now in 4.2, if every tween is created and isolated inside a method, I don't figure how to find if there is an active one and kill it (or other action) consequently from another method.
I'm pretty sure there is a solution for this. Someone can help me a bit please? Thanks in advance!