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

2014/1/26

a problem with the isTouching() method

Nooyi Nooyi

2014/1/26

#
Hello, I need some help with this code (the world is 8 x 8). My problem is that I don't know how to tell greenfoot that it should integrate the name the string actor contains.
public int numberOfActors(String actor)   {
        int numberActor = 0;
        if(isTouching( ??? .class)) {
                numberActor++;
        }
        return numberActor;
}
Is there someone who could help me? :)
danpost danpost

2014/1/26

#
Please refer to your other discussion thread (and please only start one discussion thread per issue).
You need to login to post a reply.