This site requires JavaScript, please enable it in your browser!
Greenfoot back
Gael
Gael wrote ...

4 days ago

Objects Generating In front of Existing Objects

Gael Gael

4 days ago

#
When I generate new objects they generate "infront" of the others like layers in drawing software so, anything that happens happens infront of the existing objects blocking what the existing objects are doing. Is there a way for the new objects to appear to be behind the existing objects?
danpost danpost

4 days ago

#
Gael wrote...
When I generate new objects they generate "infront" of the others like layers in drawing software so, anything that happens happens infront of the existing objects blocking what the existing objects are doing. Is there a way for the new objects to appear to be behind the existing objects?
You can use the World instance method setPaintOrder to specify the order you want the instances of the specified classes to be painted in. I believe the list of classes is given as top-most shown first.
You need to login to post a reply.