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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | //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; } |
1 | MyWorld w = (MyWorld) getWorld(); |
1 | MyWorld w; |
1 2 3 4 | protected void addedToWorld(World world) { w = (MyWorld)world; } |
1 | MyWorld w = (MyWorld) getWorld(); |
1 | MyWorld w; |
1 2 3 4 | protected void addedToWorld(World world) { w = (MyWorld)world; } |