 <p>I guess the problem is that you're not clearing <code>velocity.y</code> in your <code>update</code> function like this:</p> <pre><code>function update() { player.body.velocity.x = 0; player.body.velocity.y = 0; // below is your code from the question } </code></pre>