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

TileSprite not colliding with Sprite #1702

Closed
numbofathma opened this issue Mar 27, 2015 · 1 comment
Closed

TileSprite not colliding with Sprite #1702

numbofathma opened this issue Mar 27, 2015 · 1 comment

Comments

@numbofathma
Copy link

After updating to 2.3.0 the main character of my game falls through the ground.

You can see the same issue in the example below:
http://phaser.io/examples/v2/tile-sprites/colliding-with-tiling-sprite#gv

photonstorm added a commit that referenced this issue Mar 28, 2015
…om it.

TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma #1702)
@photonstorm
Copy link
Collaborator

Damn it, yes - because TileSprites don't have a physicsType property. You can fix this in 2.3.0 by doing this:

yourTileSprite.physicsType = Phaser.SPRITE;

I've also uploaded a fix to the dev branch.

TimvdEijnden pushed a commit to gynzy/phaser that referenced this issue Apr 3, 2015
…om it.

TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma phaserjs#1702)
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