playMaker

Author Topic: Detecting when a touch is off an object (Solved)  (Read 2116 times)

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Detecting when a touch is off an object (Solved)
« on: January 25, 2015, 10:04:26 AM »
I have touch controls working, however when I slide my finger off the touch control the player still moves.  Which I don't want.

So, I have a vector3 that is saved as the players_touch_location, and then a raycast based on this vector3 against the touch button.  However, I just can't seem to get that interaction to work correctly -- or maybe I am going about this the wrong way. Any help would be appreciated!
« Last Edit: January 26, 2015, 01:49:45 PM by PlaymakerNOOB »

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Re: Detecting when a touch is off an object (SOLVED)
« Reply #1 on: January 25, 2015, 11:44:19 PM »
So I got it working, (Sometimes) but it feels like a clumsy mess.  Im going to request an action.
---Edit---
I couldn't figure out why I was the only person who thought this was a big deal.  Found the exact action I was looking for installed by default.  Its called "touch gui event" and uses the old Unity GUI system.  Note: this is not the uGUI system aka Unity 4.6 GUI system

Video Tutorial:  Playmaker Manual:  https://hutonggames.fogbugz.com/default.asp?W679
« Last Edit: January 26, 2015, 01:49:29 PM by PlaymakerNOOB »