I need to make the question then the answer appear when I press space but I'm not sure what the code is and I can't find it. Help?
That's all the code I've got.
1 2 3 4 5 | Used_1 = 1 ; setImage ( new GreenfootImage( "27 - 26 ?" , 46 , Color.BLACK,Color.WHITE)); Greenfoot.delay ( 120 ); getWorld().addObject( new Counter(), 28 , 28 ); Greenfoot.isKeyDown( "space" ); |