I have the following line of code:
transition.to(addScore, {time = 1000, alpha = 0, onComplete = deleteFade(addScore)})
However, every time it fires, ‘deleteFade(addScore)’ is called exactly when the transition is started. From my understanding, shouldn’t the ‘onComplete’ listener fire off once the transition has completed?
I basically want to create an object, transition its alpha level to 0, and then remove the object. But the above code is removing the object before its alpha has been reduced.