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

2017/3/17

Moving on to the next level?

AxIBoop AxIBoop

2017/3/17

#
I am having problems on making a code where the player moves on to the next level if they're at the (right edge) of the world. What could be a possible code for this action?
Super_Hippo Super_Hippo

2017/3/17

#
if (getX() > getWorld().getWidth()-2)
{
    Greenfoot.setWorld( ---next level--- );
}
You need to login to post a reply.