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

2020/2/23

incompatible types: java.lang.Class<dino> cannot be converted to greenfoot.Actor

Levantaj Levantaj

2020/2/23

#
if (rossz.intersects(dino.class))
danpost danpost

2020/2/23

#
The intersects method is used to check if a specific (named) actor is touching. For what you are trying to do, use isTouching.
Levantaj Levantaj

2020/2/23

#
Thanks!
danpost danpost

2020/2/23

#
That change may not be right, either. What class is that line of code in and what type object is rossz?
Levantaj Levantaj

2020/2/23

#
It's working properly now.
You need to login to post a reply.