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

2013/8/21

need help with clara , gets stuck onleaf, how do i move it ?

sabz sabz

2013/8/21

#
[Disallowed URL] i tried heeps but everytime it goes on that leaf it gets stuck and idk what to do so i've deleted the onLeaf command and if anyone has any way to do it please help me as im fairly new to this
{[img]<a href="http://tinypic.com?ref=iz6fq8" target="_blank"><img src="http://i41.tinypic.com/iz6fq8.png" border="0" alt="Image and video hosting by TinyPic"></a>[/img] 
        move();
        if (!treeRight() ) {
            turnRight();
            move();
            putLeaf();
        } 
        if (treeFront() ) {
            turnLeft();
            turnLeft();
            move();
            turnRight();
        } 
        if (onLeaf() && treeFront()) {
            turnLeft();
            move();
            
        }
    }
You need to login to post a reply.