Hi there!
I’m using a physics arcade.
I’m having some doubt about how to move the player.
I already tried of these 3 methods on the update function:
player.body.y += 1;
player.y += 1;
player.setVelocity(0, 48);
With the first two ones I notice that when the sprite touches a screen edge, it still moves a little bit out of it.
But with the setVelocity, the sprite doesn’t do that.
How should I use and what is the difference between them?