My code:
actor.addAction(Actions.sequence(
Actions.fadeOut(0.3f),
Actions.run(new Runnable(){
@Override
public void run() {
Gdx.app.log(TAG,"after dispear");
}
})));
actor.remove()
I found the action sequence will not execute at this time. If I add the actor again, it will. Can someone give me an explanation?
actor.addAction(Actions.sequence(
Actions.fadeOut(0.3f),
Actions.run(new Runnable(){
@Override
public void run() {
Gdx.app.log(TAG,"after dispear");
}
}),
Actions.removeActor()));
//actor.remove(); remove this line.
To remove an actor in an action chain use "Actions.removeActor"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With