Hey, I have some trouble making an Object, which starts on a random number of the right side from the Map, goes strait to the other side, and repeats the action, when done.
Can someone help me, how I can do this?
if (getX() == 0) move(getWorld().getWidth()-1); // or if (getX() == 0) setLocation(getWorld().getWidth()-1, getY());