It works simply by adding the classes in a certain order. So you would use the command somewhat like this i guess: setPaintOrder(block.class, player.class, enemy.class); The last thing you add is going to be on top. Because it is the last layer added to the world. Please correct if I'm wrong. I see danpost allready reacted while I was typing. Try his idea first. He's better at this then I am XD.