kaboom icon indicating copy to clipboard operation
kaboom copied to clipboard

Player moves 10px once after straight up jump

Open sebsch1337 opened this issue 2 years ago • 0 comments

After spawning and jumping straight up, the player moves 10px to the right once.

It happens, when the pos(x) is the pos(x+1) of the underlying tile.

Player const player = add([ sprite("tiles", { frame: 5 }), pos(145, height() * 0.5), scale(1, 1), area(), body(), anchor("center"), "player", ]);

Tile (...) tiles: { "=": () => [ sprite("tiles", { frame: 18 }), area(), body({ isStatic: true }), ], (...)

Check out the video of the issue: https://github.com/replit/kaboom/assets/75478893/3b5d18e1-29ca-4fa8-baac-6e33487d3d6e

v3000.1.8

sebsch1337 avatar Sep 28 '23 10:09 sebsch1337