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

2014/5/30

How to use intersects(Actor) command?

K210 K210

2014/5/30

#
how do you use the intersects(Actor) command properly? i tried passing a class in place of actor but it doesn't work.
danpost danpost

2014/5/30

#
You cannot use a class in place of an Actor in the intersects method. If you want to look for a actors of class, use a different method, like the 'isTouching' method.
You need to login to post a reply.