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

map.setTileIndexCallback seems to not do anything. #627

Closed
ada-lovecraft opened this issue Mar 21, 2014 · 2 comments
Closed

map.setTileIndexCallback seems to not do anything. #627

ada-lovecraft opened this issue Mar 21, 2014 · 2 comments

Comments

@ada-lovecraft
Copy link
Contributor

Looking at the example: http://examples.phaser.io/_site/view_full.html?d=tilemaps&f=tile+callbacks.js&t=tile%20callbacks

and then recreating it, the hitCoin callback never fires.

looking through the source, I can't see where any of the callbacks are triggered.

@ada-lovecraft
Copy link
Contributor Author

It appears the collision re-check in World.separateTile is causing the issue.


        //  We re-check for collision in case body was separated in a previous step
        if (!tile.intersects(body.position.x, body.position.y, body.right, body.bottom))
        {
            //  no collision so bail out (separted in a previous step)
            return false;
        }

@photonstorm
Copy link
Collaborator

Yes I disabled it while working out a different issue, but it's all back in now and the Examples are working as expected.

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

2 participants