Unlimited wrote...
No i know, i dont have them in the code. I just though the way its handeled here would be helpful. Cause without the -3s and -2s the same thing happened with this method.

setLocation(getX(), actor.getY()-vDir*((actor.getImage().getHeight()+getImage().getHeight())/2+1));
Actor actor = getOneIntersectingObject(Collider.class); if (actor != null) setLocation(actor.getX()-dir*(actor.getImage().getWidth()+getImage().getWidth())/2, getY());