bitsofbas Posted November 26, 2014 Report Share Posted November 26, 2014 Is there a way to make some tiles behave so that the player cannot collide with them, other than coming from above and landing on top? There's "checkCollision" on the Physics Body which seems to be in the right direction, but that would affect the collisions against ALL tiles. Which is not what I want; I just need a couple of tiles to have this behaviour. Cheers,bas Quote Link to comment Share on other sites More sharing options...
lewster32 Posted November 26, 2014 Report Share Posted November 26, 2014 With TileMaps specifically, Tile objects have directional flags such as collideDown. justGoscha 1 Quote Link to comment Share on other sites More sharing options...
bitsofbas Posted November 26, 2014 Author Report Share Posted November 26, 2014 Oh, excellent! I completely missed that one. I see there's no ready-made function, but it's easy enough to "manually" run over all the tiles and set their flags using the "setCollision()" method. Thank you so much! lewster32 1 Quote Link to comment Share on other sites More sharing options...
lewster32 Posted November 26, 2014 Report Share Posted November 26, 2014 You're very welcome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.