Hello, I have this code
And in the line with the Buttoncheck I get a NullpointerException.
Could anyone explain what this means? I have a mouse so I am wondering
what this could be
MouseInfo mouse = Greenfoot.getMouseInfo();
if (Greenfoot.mousePressed(null))
{
if (mouse.getButton() == 1)
{
}
}
