title: What moves my paddle?
body: <p>I use the following code: It creates a paddle, and it is supposed to move when I move the mouse. But instead it vibrates all over the place.</p>
  
  <p>I included a bit of the console.log at the end so you can see the result. Does anyone know what I'm doing wrong?</p>
  
  <pre><code>var screenWidth = 800;
  var screenHeight = 400;
  // Create the state that will contain the whole game
  var mainState = {  
      preload: function() {  
          game.load.image('paddle', 'assets/graphics/Paddle.png');
      },
      create: function() {  
          game.physics.startSystem(Phaser.Physics.ARCADE);
          game.world.enableBody = true;
  
          this.paddle = game.add.sprite(screenWidth/2 - 50, screenHeight - 50, 'paddle');
          this.paddle.body.immovable = true;
      },
      update: function() {  
          var testvalue = this.paddle.x;
          this.paddle.x = game.input.x;
          console.log(testvalue + " / " + this.paddle.x);
      },
  };
  
  var game = new Phaser.Game(screenWidth, screenHeight);  
  game.state.add('main', mainState);  
  game.state.start('main');
  </code></pre>
  
  <p>Console output: First number is the position of the paddle before I use this.paddle.x = game.input.x;</p>
  
  <ul>
  <li>360 / 371 </li>
  <li>415 / 371</li>
  <li>426 / 371</li>
  <li>382 / 371</li>
  <li>...</li>
  </ul>
  
  <p>I have written nothing to manipulate <code>paddle.x</code> except that one statement. And the log proves that the statement is correct, but something else messes with the code. 
  If I remove <code>this.paddle.x = game.input.x;</code>, the paddle stands still. and doesn't move.</p>
  
  <p>If I remove: <code>game.world.enableBody = true;</code> it works, but then I get no physics</p>
  
  <p>I tested it in all 3 major browsers. and I run it locally with Xampp</p>
  
  <p>There is another example of it <a href="https://phaser.io/examples/v2/games/breakout" rel="nofollow noreferrer">here</a> but I get the same 'vibrating' paddle when I try it on my system. However it works fine on the website of phaser.</p>