playMaker

Author Topic: Ask about Input touches action[SOLVED]  (Read 2836 times)

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
Ask about Input touches action[SOLVED]
« 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?



« Last Edit: October 22, 2013, 01:01:53 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ask about Input touches action
« Reply #1 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

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
Re: Ask about Input touches action
« Reply #2 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~~~~~

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ask about Input touches action
« Reply #3 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

hunz

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Ask about Input touches action
« Reply #4 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 ()

pixelrainbow

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Ask about Input touches action
« Reply #5 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.
« Last Edit: October 21, 2013, 08:21:31 PM by pixelrainbow »