Skip to content

TileSprite mouse click detection issue #1551

@afaikafk

Description

@afaikafk

When detecting mouse clicks on a TileSprite like this:

var ground = game.add.tileSprite(0, 0, 600, 600, "ground");
ground.inputEnabled = true;
ground.events.onInputUp.add(mouseUp, this);

mouse clicks are registered only on part of the screen, which is usally close to the resoluion of the image used as tile. For instance on a 256x256 tile-sprite, clicks are detected only in the area from (0, 0) to approximately (256, 256), even though both the world bounds and game resolution are larger.

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