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

2013/6/9

breakout - ballcounter?

1
2
youjuli youjuli

2013/6/10

#
okay, thanks to you all :) the method of zamoht works but the one by danpost not? so here is the error message: error: method removeObject cannot be applied to given types; i am a little bit unable so i donĀ“t get her how to post a picture of my library. :D
danpost danpost

2013/6/10

#
The problem was that 'getObjects' returns a list of Objects (not Actors) and 'removeObject' can only remove an Actor object. My last line should have been:
removeObject((Actor)getObjects(ball1.class).get(0));
You need to login to post a reply.
1
2