ok so ive tried alot of ideas lately on my game and i want my "Crab" to go through one side of the game board and come out the other side like pacman. Any ideas ? ty for all your suggestion and replys By the way
int w = getWorld().getWidth(); int h = getWorld().getHeight(); setLocation((w + getX() + dX) % w, (h + getY() + dY) % h);