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