(CGA) Layering Objects in the World Lesson
Layering Objects in the World
Game objects may need to be in a certain order in the world. To layer objects, Greenfoot provides a setPaintOrder(java.lang.Class classes) method. Use this method to specify the paint order for the objects in the world.
[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION