Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant