Hi Everybody,
I m very new in greenfoot. I m learning to make games. I want addObject & move it after compile.
Plz give the simple examples without using getRandomNumber().


1 2 3 4 5 6 7 8 | public class Game extends greenfoot.World { public Game() { super ( 600 , 400 , 1 ); addObject( new Actor(){ public void act() { move( 1 ); } }, 50 , 200 ); } } |