blackhawx Posted October 15, 2018 Share Posted October 15, 2018 I'm looking at the following example in the labs to learn about tile collisions: http://labs.phaser.io/edit.html?src=src/game objects\tilemap\static\set colliding by property.js Based on the example, I would like to set collision properties within a JSON file, rather than depending on setting custom indexes in my game js file. Being new to this, I am attempting to use Texturepacker to create tilemaps. What would be a recommend approach in setting collision properties on tiles? (.i.e.) Do I have to edit the JSON file manually to manually put in a collision property? Is there a way with Texturepacker to set a boolen property called 'collision' for tiles? Is there another best practice that devs are taking? Many thanks! Link to comment Share on other sites More sharing options...
blackhawx Posted October 15, 2018 Author Share Posted October 15, 2018 I'm giving Tiled a shot sense it appears to be a strong map driven application. Thanks! Link to comment Share on other sites More sharing options...
cornstipated Posted October 15, 2018 Share Posted October 15, 2018 If you dont want to use indices there is another way setCollisionByProperty You'll have to add the property to the tile in Tiled blackhawx 1 Link to comment Share on other sites More sharing options...
blackhawx Posted October 15, 2018 Author Share Posted October 15, 2018 Yes, that's exactly what I was looking for. It's because of setCollisionByProperty. that I'm driven to now work with Tiled. Thanks for the suggestion on that! Link to comment Share on other sites More sharing options...
Recommended Posts