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

2016/1/10

setPaintOrder

Imtrying Imtrying

2016/1/10

#
Hi! So I'm making a pokemon themed maze in which there are pokeballs to collect. The problem is that the paint order is wrong so the pokemon(=enemies) disappear behind the pokeballs. I tried using setPaintOrder like this:
setPaintOrder(Pokemon.class,Ball.class);
      
 setPaintOrder(Pokemon2.class,Ball.class);
      
 setPaintOrder(Pokemon3.class,Ball.class);
but now only Pokemon3 is in front of the balls and the other two stil disappearbehind them,. how can I get all three of them to the front?
danpost danpost

2016/1/10

#
Imtrying wrote...
how can I get all three of them to the front?
You can list more than just two classes in the method parameter list.
Imtrying Imtrying

2016/1/10

#
Oh it's that easy? Thank you!
You need to login to post a reply.