LibGDX delayed animation
Dec 16th 2014, 08:12
myActor is the Actor needs to be animated
without delay :
Show Plain Text- myActor.addAction(Actions.moveTo(20, 30, 0.5f, Interpolation.fade));
With 0.4 sec delay
Show Plain Text- DelayAction delay = Actions.delay(0.4f);
- delay.setAction(Actions.moveTo(20, 30, 0.5f, Interpolation.fade));
- delay.setActor(myActor);
- myActor.addAction(delay);