nicolasgramlich/AndEngine — Issue #34: registerTouchArea Bug 
Author: Win32Troy
Created: 2012-02-10 12:44:40+00:00
State: open

if you run this code. x will be equal to 2 instead of 1

int x=0;
Sprite mSprite = new Sprite(0,0,Textures,new VertexBufferObjectManager())
{
@Override
public boolean onAreaTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX, float pTouchAreaLocalY)
{
if (pSceneTouchEvent.getAction() == TouchEvent.ACTION_UP)
x++;

return super.onAreaTouched(pSceneTouchEvent, pTouchAreaLocalX, pTouchAreaLocalY);
}
};
registerTouchArea(mSprite);
registerTouchArea(mSprite);