i keep getting the error messages that class is not recognized or hidden and some methods are not recognized such as eat and canSee
for example the below code does not work even though there is a class called Notes
* @version (a version number or a date)
*/
public class player1 extends Mover
{
/**
* Act - do whatever the player1 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// player follow the mouse
if(Greenfoot.mouseMoved(null)) {
MouseInfo mouse = Greenfoot.getMouseInfo();
setLocation(mouse.getX(), mouse.getY());
}
//see note eat it
if( canSee(Notes.class) ) {
eat(Notes.class);
}
}
}