BenClarkson Posted July 10, 2014 Share Posted July 10, 2014 Ok. I'm trying to build one way platforms using tilemaps and I don't quite know how to access all the tiles of a type (say, id '5' from the json) and give it custom properties (like tile.collideLeft = false). This would also be great for setting tile classes, like water, ladders, and other things.Cool! Thanks. Link to comment Share on other sites More sharing options...
BenClarkson Posted July 10, 2014 Author Share Posted July 10, 2014 I solved it! state.prototype.setOneWayTiles = function (map) {map.forEach(function(tile){if (tile.index == the tile index you're looking for) {set tile properties;} } )} Link to comment Share on other sites More sharing options...
Recommended Posts