You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a possibility to check whether a tween is active or not? Do I have to do it with :oncomplete ? Or can I manually check it if I store the tween as a variable like this:
myTween=flux.to(self, 4, {x=300})
...
if myTween:isActive() then
...
end
The text was updated successfully, but these errors were encountered:
I'm not a contributor at all, but examining the source code we can see flux:to() wraps flux:add() which assigns the object and it's tween to a table in the flux instance, as well as the flux instance itself. These are later removed during flux:remove() which is called automatically by tween:stop().
I haven't tested this myself yet, but with this in mind, flux[obj][tween] == true should be sufficient to check if a tween exists (i.e. is a valid handle) and is actively being controlled by this instance of flux.
Is there a possibility to check whether a tween is active or not? Do I have to do it with
:oncomplete
? Or can I manually check it if I store the tween as a variable like this:The text was updated successfully, but these errors were encountered: