Hello, I was writing an if statement containing the following:
The goal is to retrieve a boolean result for an if statement to use.
The line is supposed to supply a boolean value dependant on if any key is being held down.
A 'null' value will not work in place of 'getKey()', if there was a way to easily replace this, that would be appreciated as the line does not work.
Thank you for the help!
1 | !(Greenfoot.isKeyDown(Greenfoot.getKey()) == true ) |