When I use thisI says connot find symbol - variable bee1
import greenfoot.*;
import java.lang.Math;
public class Ball extends Actor
{
static int ballX=100;
static int ballY=0;
static boolean isTouching;
public void act()
{
ballX=getX();
ballY=getY();
GreenfootImage left = new GreenfootImage(bee1.png);
if(Greenfoot.isKeyDown("right")){
moveX(2);
}
if(Greenfoot.isKeyDown("left")){
moveX(-2);
}
if(Greenfoot.isKeyDown("down")){
moveY(2);
}
if(Greenfoot.isKeyDown("up")){
moveY(-2);
}
}
public void moveX(int x){
setLocation(getX()+x,getY());
}
public void moveY(int y){
setLocation(getX(),getY()+y);
}
}
