Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Player moves 10px once after straight up jump #765

Open
sebsch1337 opened this issue Sep 28, 2023 · 0 comments
Open

Player moves 10px once after straight up jump #765

sebsch1337 opened this issue Sep 28, 2023 · 0 comments

Comments

@sebsch1337
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant