8

Character never stops from walking

view full story
linux-howto

http://stackoverflow.com – I am creating a game which uses andendgine and here is my code: Player stanley = new Player(); ... scene.registerUpdateHandler(new IUpdateHandler() { public void onUpdate(float pSecondsElapsed) { stanX = stanley.getX(); destX = x.getX(); if(destX < stanX){ if(hasMovedRight == 1){ stanley.stop(); hasMovedRight = 0; } else{ stanley.moveLeft(); hasMovedRight = 0 hasMovedLeft = 1; } } if(destX > stanX){ if(hasMovedLeft == 1){ stanley.stop(); hasMovedLeft == 0; } else{ stanley.moveRight(); (HowTos)