What can I do if I don`t want the object to get stuck and not to teleport up:
here my current code
1 2 3 4 5 6 7 8 9 | public void fix () { try { Actor a = getOneIntersectingObject( null ); setLocation(getX(), a.getY() - (a.getImage().getHeight() + getImage().getHeight())/ 2 ); } catch (Exception e) { } } |