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

2016/11/14

Continuos Gaming

lolitsme lolitsme

2016/11/14

#
So I am making a zombie game that once my actor enters a door it moves to the next level. The problems is I don't know what are the codes that once I run my program I can play it wherein I don't have to stop it just to move to the next level.
danpost danpost

2016/11/14

#
lolitsme wrote...
So I am making a zombie game that once my actor enters a door it moves to the next level. The problems is I don't know what are the codes that once I run my program I can play it wherein I don't have to stop it just to move to the next level.
I will presume that your levels are in different World subclasses. If so, then use the Greenfoot class method 'setWorld':
Greenfoot.setWorld(new Level2());
You need to login to post a reply.