Hey guys,
I am new to coding but I am making a game where there is a game about a ball and the paddle. If the ball touches the paddle, the ball needs to disappear so I used an eat method.
It says cannot fin canSee. Here is my code so far:
/**
* Write a description of class Paddle here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Paddle extends Actor
{
public void act()
{
CheckKeys();
lostBall();
}
public void CheckKeys()
{
if (Greenfoot.isKeyDown("left"))
{
move(-5);
}
if (Greenfoot.isKeyDown("right"))
{
move(5);
}
}
public void lostBall()
{
if (canSee(Ball.class));
{
eat(Ball.class);
}
}
}
I am only 13, so please explain what to do in simple terms and if there is any other way for the ball to disappear when it touches the paddle, please let me know!

