Let us assume that thier r 2 variables i.e. x and y
They both are the high scores of the different games respectively
I want x and y to be saved seperately but i tried hard and yet now i don't know how will i do it
//global int newValue; //gameOver() method if(UserInfo.isStorageAvailabel()) { UserInfo m = UserInfo.getMyInfo() ; if(m! =null) { m.setInt(1, newValue) ; m. store() ; } } public int Score() { return newValue1; }
MyWorld w = (MyWorld) getWorld();
MyWorld w;
protected void addedToWorld(World world) { w = (MyWorld)world; }
MyWorld w = (MyWorld) getWorld();
MyWorld w;
protected void addedToWorld(World world) { w = (MyWorld)world; }