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

2020/7/16

trouble with image

Roshan123 Roshan123

2020/7/16

#
when i add picture, the picture is not over the spaceship. the picture is over the counter. i want it to work in reverse order i.e. the picture should be over the spaceship not over the counter. plz help me to fix it out!
danpost danpost

2020/7/16

#
Roshan123 wrote...
when i add picture, the picture is not over the spaceship. the picture is over the counter. i want it to work in reverse order i.e. the picture should be over the spaceship not over the counter. plz help me to fix it out!
Use World instance method setPaintOrder(java.lang.Class...).
Roshan123 Roshan123

2020/7/16

#
how will i use that plz write the code
danpost danpost

2020/7/16

#
Roshan123 wrote...
how will i use that plz write the code
In world constructor, something like:
setPaintOrder(Counter.class, Picture.class, Ship.class);
You need to login to post a reply.