This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Levantaj
wrote ...
2020/2/23
incompatible types: java.lang.Class<dino> cannot be converted to greenfoot.Actor
Levantaj
2020/2/23
#
if (rossz.intersects(dino.class))
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
2020/2/23
#
Thanks!
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
2020/2/23
#
It's working properly now.
You need to login to post a reply.
X