Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: PlaymakerNOOB on January 25, 2015, 08:04:26 AM

Title: Detecting when a touch is off an object (Solved)
Post by: PlaymakerNOOB on January 25, 2015, 08: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!
Title: Re: Detecting when a touch is off an object (SOLVED)
Post by: PlaymakerNOOB on January 25, 2015, 09: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:  https://www.youtube.com/watch?v=iSTr5ehQlBk
Playmaker Manual:  https://hutonggames.fogbugz.com/default.asp?W679