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

2014/8/19

SetPaintOrder problem

Draymothisk Draymothisk

2014/8/19

#
My code works properly until I use "setPaintOrder" in my world, then it seems the act method on some of my Actors' stops working as a result. Anyone know why? Here's the code for the world:
public levelOne()
    {    
        // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
        super(960, 400, 1, false); 
        setPaintOrder(Ninja.class, tie.class, Sword.class);
        
        populateNinja();
    }
davmac davmac

2014/8/19

#
My code works properly until I use "setPaintOrder" in my world, then it seems the act method on some of my Actors' stops working as a result
That sounds pretty unlikely. More detail needed.
You need to login to post a reply.