Hello, in my multiplayer game I need to have more control over the positions and movements of the players. setVelocity
is a great command, but in my case it causes a lot of problems because the speed is persistent and I need to disable it with setVelocity(0, 0)
. What would work for me would be sprite.body.x -= 10
however doing this all collisions are ignored. Any tips on how I can shift a sprite by an amount of pixels keeping the collisions working?