1 2 3 4 5 6 7 8 9 10 11 12 | public void act() { movement(); click(); leave(); } static String thisPlayer;[quote]im trying to create a new World (in this Case the world is calles Room) as soon as he hits the edge the world is 1300 and 900 big, i used 450 so the player has to hit the middle of the edge put when i slide around the right edge nothing happens[/quote] public void leave(){ thisPlayer = "" ; if ( this .getX() == 1300 && this .getY() == 450 ){thisPlayer = "player1" ;Greenfoot.setWorld( new Room());} } |

