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

2020/8/29

crab tutorial incompatible class

genek genek

2020/8/29

#
I'm doing crab tutorial and added Worm class. in this line worm = getObjectsAtOffset(0, 0, Worm.class); I get a compilation error incompatible types no instance of type variable A exists so that List<A> conforms to greenfoot.Actor
genek genek

2020/8/29

#
nevermind wrong method call it should be worm = getOneObjectAtOffset(0, 0, Worm.class);
You need to login to post a reply.