playMaker

Author Topic: Touch Object 2d Event not working on Sprite [SOLVED]  (Read 1921 times)

HoboJoe

  • Playmaker Newbie
  • *
  • Posts: 2
Touch Object 2d Event not working on Sprite [SOLVED]
« on: April 25, 2014, 10:56:37 PM »
Hi all,

I apologise if this has been asked/answered before - I've searched for two days but haven't found any resolution so figured I'd ask.

I'm trying create a Touch Object 2d Event on a Sprite where when it's touched, the Sprite/Object is destroyed.
I have the Touch Began field populated with an event that sets off the Destroy Self action.

When I play the game, no matter what I do, the touch event just isn't registered.

As a test, I created a new cube (this is all 2D) and added the same states to it. On play, the cube is destroyed when I tap it.

Is there a bug that doesn't allow the Touch Object 2d Event to work on a Sprite?

Thanks!
« Last Edit: April 27, 2014, 05:00:41 AM by HoboJoe »

HoboJoe

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Touch Object 2d Event not working on Sprite [SOLVED]
« Reply #1 on: April 27, 2014, 04:48:00 AM »
Aha figured it out! Not sure what the exact issue was but when I recreated the entire prefab and reapplied the Polygon 2D Collider it started working! Woohoo!