playMaker

Author Topic: 2d toolkt sprite can not work with Touch Object Event  (Read 3491 times)

jasonshow

  • Playmaker Newbie
  • *
  • Posts: 8
2d toolkt sprite can not work with Touch Object Event
« on: December 05, 2012, 12:55:59 PM »
I make a sprite with 2d toolkit, and then add "Touch Object Event" action to it.
but not work !
I tested with normal cube gameobject,the touch event is work fine!

can anyone tell me how to fix it ?

thanks!

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: 2d toolkt sprite can not work with Touch Object Event
« Reply #1 on: December 05, 2012, 01:15:48 PM »
a touch object action is in its' core nothing but a raycast. So if your sprite doesn't have a collider on it, it won't be noticed by screen pick, mouse pick, touch object, raycast etc..
Best,
Sven

jasonshow

  • Playmaker Newbie
  • *
  • Posts: 8
Re: 2d toolkt sprite can not work with Touch Object Event
« Reply #2 on: December 05, 2012, 01:40:58 PM »
yes , I add a collider to it , but still not work.

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: 2d toolkt sprite can not work with Touch Object Event
« Reply #3 on: December 06, 2012, 05:07:49 AM »
does your sprite move at runtime? I have noticed some problems with 2D toolkit and collision on moving objects. Otherwise this sounds like a mystery :S Can you share a test project where this happens?
Best,
Sven

will_brett

  • Junior Playmaker
  • **
  • Posts: 72
Re: 2d toolkt sprite can not work with Touch Object Event
« Reply #4 on: February 17, 2013, 07:27:38 PM »
Old thread but I have this exact issue