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

Player moves 10px once after straight up jump #765

@sebsch1337

Description

@sebsch1337

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions