bitsofbas Posted November 26, 2014 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 Link to comment Share on other sites More sharing options...
lewster32 Posted November 26, 2014 Share Posted November 26, 2014 With TileMaps specifically, Tile objects have directional flags such as collideDown. justGoscha 1 Link to comment Share on other sites More sharing options...
bitsofbas Posted November 26, 2014 Author 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 Link to comment Share on other sites More sharing options...
lewster32 Posted November 26, 2014 Share Posted November 26, 2014 You're very welcome Link to comment Share on other sites More sharing options...
Recommended Posts