I want to move my character along the x axis with constantly speed. I thought move depends on frame rate. So, technically I should write
sprite.body.velocity.x = speed * deltaTime
deltaTime = game.time.elapsedMS / 1000;
But if I'm doing that - my character moves vvvvverrry slooow, even if
speed = 1000.
But if I'm writing
sprite.body.velocity.x = speed
it works fine. My fps = 60;
Phaser Documentation says:
velocity - The velocity, or rate of change in speed of the Body. Measured in pixels per second.
and all demos do not have deltatime
So, I don't understand: shoud I calculate deltaTime or just use