Move sprite from one coordinate to another at given speed

I used this.physics.moveTo(sprite, this.x1, this.y1);

but the sprite does not stop moving…

moveTo doesn’t the stop the body automatically, it only sets up the velocity. There’s an example.

2 Likes