Hello Guest

Author Topic: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?  (Read 7471 times)

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
[2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
« 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.
« Last Edit: July 18, 2013, 04:27:36 am by JBabz »

stevexu

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #1 on: July 16, 2013, 04:49:58 pm »
add a box  Collider  for the  tile  in a tilemap. as below:

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #2 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...

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #3 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.

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #4 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..

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #5 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?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #6 on: July 16, 2013, 11:07:24 pm »
Also change the collider depth on the sprite collection if you have to.

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
Re: [2.1 BETA] 2DTK Tilemap Colliders?
« Reply #7 on: July 18, 2013, 03:03:49 am »
Tried everything, yes, I see the colliders. I'm lost.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
« Reply #8 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.

JBabz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 42
  • @joe_babz
    • View Profile
    • Zombit on Facebook
Re: [2.1 BETA] [FIXED] 2DTK Tilemap Colliders?
« Reply #9 on: July 18, 2013, 03:49:09 pm »
Haha.
Thanks a ton, man, but I fixed it (see initial post).