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

2015/12/1

problem with eating a flower

noorinrahila noorinrahila

2015/12/1

#
I see a problem in eating a flower in coding. first one i gave get(class )showing error &eat(class) also showing error. because it was not in library of greenfoot. how to include them in greenfoot library?
danpost danpost

2015/12/1

#
Normally, the method that goes along with the 'eat' method is called the 'canSee' method. These methods are found in the Animal class. You might just try using the 'isTouching(Class)' and the 'removeTouching(Class)' methods which are already a part of the Actor class which do basically the same thing.
You need to login to post a reply.