2D Toolkit Forum

2D Toolkit => Support => Topic started by: will_brett on February 18, 2013, 12:24:38 am

Title: Touch Object Event not working with TK2D
Post by: will_brett 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
Title: Re: Touch Object Event not working with TK2D
Post by: will_brett 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.
Title: Re: Touch Object Event not working with TK2D
Post by: unikronsoftware 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.