Hiya everyone, I'm making a 'pacman' based game and In it there is 4 walls (obviously) and in the middle of each wall there is a teleporter so when it gets there I want 'pac' to teleport to the other side but I don't know how to do it. I presume you would have to enter a variation of this " if (getX() < -40) { setLocation(getWorld().getWidth()+40, getY()); } " but I don't know how to do it. that is the x code, so I thought you would do this for the y code " if (getY() < -40) { setLocation(getWorld().getHeight()+40, getX()); }" any help would be greatly appreciated please ;D

