I have two objects, but one keeps blocking the other. So I tried using setPaintOrder(), and nothing happened. This code is in the world's act method. I've tried looking this up and can't find anything, and I've tried swapping orders, nothing happens. This is a (very abbreviated) snip of my code.
^^this isn't even close to the amount of code I have written, but these are the only things I think could be related to my issue.
Edge Sidebar = new Edge(); public MyWorld() { super(800, 400, 1); setBackground("Map.png"); Sidebar.setImage("Sidebar.png"); addObject(Sidebar,700,200); } public void act() { setPaintOrder(GUI_Image.class, Edge.class);}