Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: naktim0819 on June 16, 2013, 09:26:00 PM

Title: Ask about Input touches action[SOLVED]
Post by: naktim0819 on June 16, 2013, 09:26:00 PM
This is I try to do but it's fail

I want to get the first and last I swipe up 's Y position
the use last Y to sub the first Y point

but I use that action to get . It's get nothing~
I have use Gui text to check my 2 value
It's always 0
 
Did I do worng?



Title: Re: Ask about Input touches action
Post by: jeanfabre on June 17, 2013, 01:41:57 AM
Hi,

 Have you properly added the input touch proxy for playmaker in your scene? and have you checked the swipe check box to allow for listening to swipe events?

bye,

 Jean
Title: Re: Ask about Input touches action
Post by: naktim0819 on June 17, 2013, 02:12:06 AM
hey jean! hi
Yes I have put that in my scene
is that right?

it's not move~~~~~
Title: Re: Ask about Input touches action
Post by: jeanfabre on June 17, 2013, 03:01:24 AM
Hi,

Difficult to say. pm me with your packaged scene, and I'll have a look.

bye,

 Jean
Title: Re: Ask about Input touches action
Post by: hunz on June 29, 2013, 06:18:12 AM
Hey, was this resolved?  I just started using input.touches and am getting null reference errors that don't allow any testing.  Going to reset and check but this pops up.

Using Unity 4.1.5f

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.InputTouchesGetSwipeInfo.OnEnter () (at Assets/PlayMaker Input Touches/Internal/Actions/InputTouchesGetSwipeInfo.cs:61)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.UpdateStateChanges ()
HutongGames.PlayMaker.Fsm.Start ()
PlayMakerFSM.Start ()
Title: Re: Ask about Input touches action
Post by: pixelrainbow on October 21, 2013, 08:15:22 PM
I'm also getting a NullReferenceException (in latest, 4.2.2 version). :(

EDIT: 2:20am is a bit too late, didn't notice first that the Swipe event was missing. :) NullRef seems to come up only when there is no event to pass the info to.