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

2021/5/26

changing worlds by choices

bangtan bangtan

2021/5/26

#
public void act() 
    {
        if(Greenfoot.mouseClicked(cara) || Greenfoot.mouseClicked(this))
        {
            Greenfoot.setWorld(new easya());
        }
        if(Greenfoot.mouseClicked(carb) || Greenfoot.mouseClicked(this))
        {
            Greenfoot.setWorld(new easyb());
        }
i did this code but when car b and easy is picked, it still goes to easy a
danpost danpost

2021/5/26

#
Please provide full class.
You need to login to post a reply.