title: Libgdx Screens are not swapping
body: <p>I am new to Libgdx and I was wrote a class that extends the Game class, the thing is that the setScreen() method from Game is not swapping the screens because after I set the screen my game still renders only what is in the render method from the game class and not what is in the render method of screen class. This is the code:</p>
  
  <p>If a run this code I only get a red screen even though I change screens when the user touches(clicks) the screen</p>
  
  <pre><code>class myGame extends Game
  {
      GameScreen myOtherScreen;
  
      public void create() 
      {
         //create other screen
         myMenuScreen = new GameScreen();
      }
  
      public void render(float delta) 
      {   
          // change screens if screen touched
          if(Gdx.input.justTouched())
              setScreen(myOtherScreen);
  
              //render red screen
          Gdx.gl.glClearColor(1, 0, 0, 1);
          Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  
      }
      .
      . //other methods
      .
  }
  
  // ======= Screen Class ========
  
  public class GameScreen implements Screen
  {
       @Override
       public void render(float delta) 
       {
              //render green screen
           Gdx.gl.glClearColor(0, 1, 0, 1);
           Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);      
       }
       .
       . //other methods
       .
  }
  </code></pre>