now you guys dont get payd enough by the hour to explain this as a teacher, but can someone give somewhat of a direction what this code exactly doese?
// offset returns the absolute distance between two objects on the X asis? WHY do you need that?
int offset = Math.abs(this.getX() - object.getX()); if(offset >= getImage().getWidth()/2) { X = -X; } else { Y = -Y; }