to prevent the java garbage collector kicking in, it is common sense to avoid object allocation during runtime.
However, during your AndEngine adventures, you may have seen something like this:
-
publicvoidfireTo(floatx,floaty)
-
{
-
MoveModifier mm=newMoveModifier(1.0f, 100, x, 100, y);
-
registerEntityModifier(mm);
-
}
http://www.andengine.org/forums/tutorials/code-snippet-reusable-movemodifier-t8291.html