hello,
i made a moveable paddle that you can move to the left and right. but it moves half way into the edge. i tried it with turn(180) but that makes it go crazy.
does anybody know how to stop it moving in the edge?

// in pseudo-code if (not (moving_speed+location_coordinate < half_image_size) && moving_left) move_left();
int leftEdge= getImage().getWidth()/2; int rightEdge = getWorld().getWidth() - leftEdge - 1; if (getX() < leftEdge) setLocation(leftEdge, getY()); else if (getX() > rightEdge) setLocation(rightEdge, getY());