(Questions on tiled map editor) Does tiled require you to set a collision layer?

View previous topic View next topic Go down

(Questions on tiled map editor) Does tiled require you to set a collision layer?

Post by jambutters on Thu Apr 21, 2016 12:13 am

I've been looking up tutorials on tiled and most of them have to specify a collision layer in tiled. I was wondering if you could just set a specific tile to contain the custom properties like: {density: true} and the game would automatically(with code of course) make that image/sprite a solid object in the game. Sorry if I explained it all weird

jambutters

Posts : 6
Reputation : 0
Join date : 2016-04-19

View user profile

Back to top Go down

Re: (Questions on tiled map editor) Does tiled require you to set a collision layer?

Post by rc on Thu Apr 21, 2016 1:38 am

The game used to have a layer called COLLISION where you'd need to put 0 or 1 for every tile. (By 1 I mean the top-left tile of the first tileset image.)
Raining Chain now automatically calculate the COLLISION layer for you (far more consistent and quick) so you don't need to manually do it.

rc
Admin

Posts : 164
Reputation : 9
Join date : 2016-04-04
Age : 22
Location : Montreal

View user profile http://rainingchain.com

Back to top Go down

Re: (Questions on tiled map editor) Does tiled require you to set a collision layer?

Post by jambutters on Fri Apr 22, 2016 1:40 am

rc wrote:The game used to have a layer called COLLISION where you'd need to put 0 or 1 for every tile. (By 1 I mean the top-left tile of the first tileset image.)
Raining Chain now automatically calculate the COLLISION layer for you (far more consistent and quick) so you don't need to manually do it.
Was implementing tiled into your game pretty easy? Also did you use a plugin of some sorts?

jambutters

Posts : 6
Reputation : 0
Join date : 2016-04-19

View user profile

Back to top Go down

Re: (Questions on tiled map editor) Does tiled require you to set a collision layer?

Post by rc on Fri Apr 22, 2016 3:52 pm

Tiled save file (.tmx) is just a regular xml file. It's really easy to read (if saved in csv format). Just use any xml parser.

rc
Admin

Posts : 164
Reputation : 9
Join date : 2016-04-04
Age : 22
Location : Montreal

View user profile http://rainingchain.com

Back to top Go down

Re: (Questions on tiled map editor) Does tiled require you to set a collision layer?

Post by Sponsored content Today at 9:26 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum