Jump to content

Recommended approach in setting collision properties


blackhawx
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...