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

2021/2/3

our? errors in crab tutorial 3, any help appriciated

Harryandharrysmom Harryandharrysmom

2021/2/3

#
Hi, we are pretty very new to this and are stuck on the tutorials. It is the worm part and we are trying to get the crab to eat the worm. We feel we have copied the code correctly but it is coming up still with errors like illegal start of expression and identifier expected.
 }    
    
    
    Actor worm;
    worm = getOneObjectAtOffset(O, O, Worm.class);
    if (worm != null)
    {
        World world;
        world = getWorld();
        world.removeObject(worm);
    }
}
RcCookie RcCookie

2021/2/3

#
In line 1 there is a closing curly bracket where there should be an opening one
Harryandharrysmom Harryandharrysmom

2021/2/4

#
oooh thanks appreciate your help!!
You need to login to post a reply.