How to delay an animated sprite in Andengine?

Posted by shailenTJ on Stack Overflow See other posts from Stack Overflow or by shailenTJ
Published on 2012-11-17T17:02:45Z Indexed on 2012/11/17 23:01 UTC
Read the original article Hit count: 326

Filed under:
|
|

I have an animated Sprite that is drawn on the screen when I press the button. However, I want to the animation to start after 5 seconds. Technically, the ver first PNG in the "animation set" is shown and the animation starts after 5 seconds.

I have tried to used the DelayModifier as follows, but without luck:

mySprite.registerEntityModifier(new DelayModifier(500)); //doesn't work

I would appreciate your input.

© Stack Overflow or respective owner

Related posts about delay

Related posts about andengine