So basically I'm writing a code and the backround has to change when it clicks "z", this is my code
1 2 3 4 5 6 | public void changeImage() { if (Greenfoot.isKeyDown( "z" )){ setBackground( "Pokemenu.jpg" ); } } |