Hello Guest

Author Topic: Touch Object Event not working with TK2D  (Read 5063 times)

will_brett

  • Newbie
  • *
  • Posts: 6
    • View Profile
Touch Object Event not working with TK2D
« on: February 18, 2013, 12:24:38 am »
Touch Object Event (Playmaker) doesn't work with TK2D sprites or animated sprites.

Is this something that just doesn't work or is it something I am doing wrong?

What I have is one state with a "Touch object event" which goes into another state, but when i touch the sprite, nothing happens. Yet when I try the exact same thing with a cube it works fine.  :-\

All the best

W

will_brett

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Touch Object Event not working with TK2D
« Reply #1 on: February 18, 2013, 12:40:03 am »
For some reason, it has now started working. What I did was change from polygon collider to custom box collider.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Touch Object Event not working with TK2D
« Reply #2 on: February 18, 2013, 12:41:40 am »
Possibly because you didn't have caps on the polygon collider? The poly collider by default doesn't have front or back caps. Fine in most game scenarios, not for UI.