title: Move an object in the direction its facing using 2d html5Canvas and ctx.rotate function
body: <p>The title kind of says it all, I am trying to move an object forward depending on the angle it is at. </p>
  
  <p><strong>Here is my relevant code:</strong> </p>
  
  <pre><code>xView =  this.x-this.width/2;
  yView =  this.y-this.height/2; 
  playerCtx.drawImage(imgSprite, 0, 0, this.width, this.height, xView, yView, this.width, this.height); 
        playerCtx.save();     
        playerCtx.clearRect(0, 0, game.width, game.height);
        playerCtx.translate(xView, yView);
        playerCtx.rotate(angle *Math.PI/180);
        playerCtx.drawImage(imgSprite, 0, 0, this.width, this.height, -xView, -yView, this.width, this.height); 
        playerCtx.restore();
      }
          if(Game.controls.left) {
      angle-=1; 
          if(Game.controls.up){
          this.x +=   this.speed * Math.cos(angle * Math.PI / 180);
          this.y -=   this.speed * Math.sin(angle * Math.PI / 180);
          }
  </code></pre>
  
  <p>The object doesn't move corresponding to the <code>var angle</code>.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I couldn't figure out why my code wasn't working so I instead used a sprite sheet containing 36 different angles. This works, however the rotation is too fast. If anyone could tell me why the above isn't working properly, or how I would go about making the following function go slower:</p>
  
  <pre><code>if(Game.controls.right) {
      currentFrame++;
      angle+=10;
   }
  </code></pre>
  
  <p>By slower I mean when the left key is held down, <code>angle+10; currentFrame++;</code> are raising to fast, and adding more Frames may take too long.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Added a <strong><a href="http://jsfiddle.net/p5hn6/1/" rel="noreferrer">Jfiddle</a></strong> for my original question, the angle variable moves with the rotation, for an example if the object is facing Right, angle will equal 90, but the object still doesn't look like its moving to the right, although the camera does.</p>