I am very new to AndEngine. I found that I can use an Entity on which I applied MoveModifier or for some other Modifiers it may also work. For example:
MoveModifier mm = new MoveModifier(1.0f,startx, starty, endx, endy) {
@Override
protected void onModifierStarted(IEntity pItem) {
//do somthing with pItem
}
@Override
protected void onModifierFinished(IEntity pItem) {
//do somthing with pItem
}
};
But I can't do the same thing with IUpdateHandler when I apply it on an Entity (Sprite). So, is there any way so that I can use the Entity (Sprite) from inside the Handler call?
Edit:
What I actually want is something like this:
IUpdateHandler mm = new IUpdateHandler() {
@Override
protected void onModifierStarted(IEntity pItem) {
//do somthing with pItem
}
@Override
protected void onModifierFinished(IEntity pItem) {
//do somthing with pItem
}
};
But this doesn't work. Any other way or is there a way to pass anything as the IUpdateHandler parameter?