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

2015/6/15

Creating levels

Marc Marc

2015/6/15

#
I've made a maze game with two different levels, but I don't know how to go from one level to the next. The two levels are in subclasses from the World. They are supposed to change when the actor reaches the edge. How do I code it?
azazeel azazeel

2015/6/15

#
if(levelUp)
Greenfoot.setWorld(new newWorld());
Squirrel98 Squirrel98

2015/6/17

#
You can also switch the level when another actor is touched
 
if(isTouching(something.class))
        {
            
            World1 lvl1 = new World1();
            Greenfoot.setWorld(lvl1);

        }
You need to login to post a reply.