Hi, I'm new to greenfoot and I've run into a problem with Collision. I want an Actor to stop when it reaches another certain type of object. Below is the code I used to try that but it doesn't compile when I add it. Any help would be greatly appreciated.
if (Greenfoot.isKeyDown("left"))
{
if (canSee(Wall.class == null))
{
move(0);
}
else
move(-2);
}
