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

2011/12/5

Robot

roony_08euro roony_08euro

2011/12/5

#
Need a robot to detect barrel using getobjectsinrange and make it go round about the barrel without touching. Can someone please explain in detail how to use the code? I am new to it.
davmac davmac

2011/12/6

#
Have a think about it. Have a go at it. Come back when you can ask something a bit more precise! Post the code you've written.
DonaldDuck DonaldDuck

2011/12/6

#
Just to clarify, getObjectInRange returns a list of actors in the given radius. You need to import java.util.List and think about how to get a specific actor out of that list.
You need to login to post a reply.