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

2024/10/17

Objects Generating In front of Existing Objects

Gael Gael

2024/10/17

#
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

2024/10/18

#
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.
Gael Gael

2024/10/23

#
Thank you very much! it worked great and had a better effect than I thought
You need to login to post a reply.