Hi! can i share a value from variables between ? for example:to world2
public class World1 extends World { private int score; }
public class World1 extends World { private int score; }
//in ‘World1’ World2 w2 = new World2(); w2.setScore(score); Greenfoot.setWorld(w2);
//in ‘World2’ (or in ‘World’ if you also move ‘score’ there) public void setScore(int newScore) { score = newScore; }