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

2021/12/7

How do I create layers for my graphics? | Java

CodingCowgirl CodingCowgirl

2021/12/7

#
A week ago (or so) I asked a question about how to display a text on Greenfoot here. Now I think I’ve found the perfect solution. (My problem was that the text behind the square and not “on” this one.) When I used Canva today, I noticed the create a “layer” for each object. So, I got the idea, “Hey! Maybe I could use this to solve my text problem.” Now my question is if it’s possible to create some type of invisible layer for my text? (So, that Greenfoot is able to part easier the single objects.)
danpost danpost

2021/12/8

#
If you want your text to show above other actors, then use the setPaintOrder World instance method.
You need to login to post a reply.