title: How do you rotate the 'player' in a Phaser game?
body: <p>I am developing an arena style zombie game. I am in very early stages and I can't find a way to rotate the player the way I want.</p>
  
  <p>I want to be able to rotate the player using left-arrow and right-arrow and move forward with up-arrow.</p>
  
  <p>This is my current player movement conditions:</p>
  
  <pre><code> if(this.cursor.left.isDown){
          this.player.angle += -0.5;
      }
      else if(this.cursor.right.isDown){
          this.player.angle += 0.5;
      }
      else if(this.cursor.up.isDown){
          this.player.body.velocity.y = -75;
      }
      else{
          this.player.body.velocity.x = 0;
          this.player.body.velocity.y = 0;
      }
  </code></pre>
  
  <p>The problem with this approach is that, although I can change the rotation of the player with <code>.angle</code>, when I move forward it still just moves me 'up' the screen instead of 'forward' compared to my rotation.</p>
  
  <p>Sorry if I have explained poorly.</p>