2D Toolkit Forum

2D Toolkit => Support => Topic started by: JBabz on July 16, 2013, 04:42:39 pm

Title: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
Post by: JBabz on July 16, 2013, 04:42:39 pm
Hi.

I've noticed that there is an option for "Render Mesh" and "Collider" in the 2DTK tilemap editor..
I'm importing a map from Tiled, and so far it's working, except the only last thing that I want to do is add colliders to the top layer of my map.
It seems very possible, I'm just lost as to how to do it.
Can anybody throw me a line here?

Thank you SO much! :D

EDIT: I FIXED IT! All that I had to do was delete my Tilemap Render Data and re-commit. Deleting it was key. Interesting.
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: stevexu on July 16, 2013, 04:49:58 pm
add a box  Collider  for the  tile  in a tilemap. as below:
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: JBabz on July 16, 2013, 05:07:36 pm
I tried that, and it didn't seem to work...
I really appreciate the possible fix, though, bro!
There must be something else I'm doing wrong...
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: unikronsoftware on July 16, 2013, 05:35:24 pm
You did commit, didn't you? The collider won't exist until you commit. Check the demo scene to see whats going on there and how its setup.
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: JBabz on July 16, 2013, 10:48:56 pm
I commited...what's wrong with this thing? Is my character maybe on a different Z coordinate? I tried that though..
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: unikronsoftware on July 16, 2013, 11:05:35 pm
No idea what you could've done wrong.
Can you see the colliders in scene view when you select the tilemap render data object after comitting?
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: fsadeq on July 16, 2013, 11:07:24 pm
Also change the collider depth on the sprite collection if you have to.
Title: Re: [2.1 BETA] 2DTK Tilemap Colliders?
Post by: JBabz on July 18, 2013, 03:03:49 am
Tried everything, yes, I see the colliders. I'm lost.
Title: Re: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
Post by: unikronsoftware on July 18, 2013, 10:06:06 am
Ok. Easy solution - make a repro case for me, zip up the project and send to support at unikronsoftware.com.
I'll look into it for you.
Title: Re: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
Post by: JBabz on July 18, 2013, 03:49:09 pm
Haha.
Thanks a ton, man, but I fixed it (see initial post).