An object is added into a world but it is shown over the hero. is there code to display and object over another.
setPaintOrder(ClassOnTop.class, ClassBelow.class);
int x=getX(), y=getY(); World w = getWorld(); w.removeObject(this); w.addObject(this, x, y);