yeah it's already in the Headline. How to observe the mouse weather it's out of the screen or inside.
I have to say I know the basics of how to use if( ) , and how to get the getX() of the mouse, but I forgot the
statement that is needed inside the if( ) like:
if( ?????????? )
{
mouseX = Greenfoot.getMouseInfo().getX();
}
I just need ???? to stop the thing to look for the X when the mouse is off screen.
Like if ( Greenfoot.getMouseInfo() != null)
but this one doesn't work, because of a nullPointerExeption and I don't know where the mistake is.

