i need to make an object vanish at the edge of the world. does anyone know the code?
int gapX = 10; int gapY =8; if (getX() >= getWorld().getWidth()-gapX || getX() <= gapX || getY() >= getWorld().getHeight()-gapY || getY() <= gapY) { getWorld().removeObject(this) }