I want to make button for change map.
I have Map1, Map2, Map3, ....
I tried to make this:
Not working :(
How to make this?
1 2 3 4 5 6 7 8 9 | public static int v= 0 ; public void act() { if (Greenfoot.mouseClicked( this )){ v++; Greenfoot.setWorld( new "Map" +v()); } } |