Jump to content

Recommended approach in setting collision properties


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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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