I use a DigitalOnScreenControl DigitalOnScreenControl (knob with a four-directional arrow control) to move the entity and the entity which is bound to a physicsHandlerphysicsHandler.
physicsHandler.setEntity(sprite);
sprite.registerUpdateHandler(physicsHandler);
From the DigitalOnScreenControlDigitalOnScreenControl, I know which direction I want my sprite to move. Inside its overridden onControlChangeonControlChange function, I call a function animateSpriteanimateSprite that checks which direction I chose. Based on the direction, I animate my sprite differently.
PROBLEM:Problem: I want to automatically move the sprite to a specific location on the scene, say at coordinates (207, 305). My sprite is at (100, 305, which means it has to move down by 107 pixels.
How do I tell the physicsHandlerphysicsHandler to move the sprite down by 107 pixels? My animateSpriteanimateSprite method will take care of animating the sprite's downward motion.
Thank you for your input!