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

Modified TiledLevel.hx To support Multiple tilesets and collidable layers #132

Merged
merged 1 commit into from Jun 24, 2014

Conversation

Projects
None yet
3 participants
@ezacharyk

ezacharyk commented Jun 24, 2014

Modified TiledLevel.hx to allow support for multiple tilesets per .tmx file. Changed a hardcoded '1' to the dynamic 'tileSet.firstGUID' value pulled from the tmx file.

Modified TiledLevel.hx to fix bug that only checked the first collidable
layer for collisions. Moved the 'FlxG.overlap' call to the condition of an if statement. If a collision occurs, it then returns true. If not, it continues the loop.

Modified TiledLevel.hx to allow support for multiple tilesets per .tmx
file.

Modified TiledLevel.hx to fix bug that only checked the first collidable
layer for collisions.
@ezacharyk

This comment has been minimized.

Show comment
Hide comment
@ezacharyk

ezacharyk Jun 24, 2014

I should add, that this change came about because of this discussion on the HaxeFlixel forums.

http://haxeflixel.com/forum/?place=msg%2Fhaxeflixel%2FvVFJtz6xvAY%2FIHhi18MK5f0J

ezacharyk commented Jun 24, 2014

I should add, that this change came about because of this discussion on the HaxeFlixel forums.

http://haxeflixel.com/forum/?place=msg%2Fhaxeflixel%2FvVFJtz6xvAY%2FIHhi18MK5f0J

mrcdk added a commit that referenced this pull request Jun 24, 2014

Merge pull request #132 from ezacharyk/dev
Modified TiledLevel.hx To support Multiple tilesets and collidable layers

@mrcdk mrcdk merged commit 762ac19 into HaxeFlixel:dev Jun 24, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
@mrcdk

This comment has been minimized.

Show comment
Hide comment
@mrcdk

mrcdk Jun 24, 2014

Member

Thanks 😄

Member

mrcdk commented Jun 24, 2014

Thanks 😄

@ezacharyk

This comment has been minimized.

Show comment
Hide comment
@ezacharyk

ezacharyk Jun 24, 2014

Thank you.

ezacharyk commented Jun 24, 2014

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment