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

2015/11/22

How to make actors see other actors

sanderbakker sanderbakker

2015/11/22

#
The title says it all. I have a actor moving around my world but it goes trough every other actor in the world. I want it to turn when it reaches another actor. Anyone knows how to do this?
danpost danpost

2015/11/22

#
sanderbakker wrote...
I have a actor moving around my world but it goes trough every other actor in the world. I want it to turn when it reaches another actor
Try
if (isTouching(null))
sanderbakker sanderbakker

2015/11/22

#
Thanks this also helped me alot
You need to login to post a reply.