Controls accelerating by every frame

I setup a new fixed keys control:

function create() {
   controls = new Phaser.Cameras.Controls.FixedKeyControl(camControls(this));
    }

and then:

function update(delta) {
   controls.update(delta);
}

When i just load the game, the controls work fine, but as time passes the speed of the controls increases. If i load up the game and let it alone for a minute or so and then hit one of the control keys, the map moves crazy fast. Seems like the speed value of the control increases every frame or something. What can i do?

Thanks!

function update(time, delta) {
   controls.update(delta);
}
2 Likes

nods