I am trying to make a sprite move using MoveByModifier in Andengine. I want it to keep repeating after the modifier has finished but i am unable to achieve that. Following is my code if anyone can help...
MoveByModifier mod1 = new MoveByModifier(20, 150, 400){
@Override
protected void onModifierFinished(IEntity pItem) {
super.reset();
}
};
Sprite.registerEntityModifier(mod1);
mMainScene.attachChild(Sprite);
I also tried LoopEntityModifier but still it does not repeat... I cant understand why?
Sprite.registerEntityModifier(new LoopEntityModifier(mod1));