playMaker

Author Topic: Creating dual pad controls only using PlayMaker  (Read 30330 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #15 on: August 07, 2012, 09:13:01 AM »
Hi,

 ok, I'll work on that. I think tho you should check with Red, he might be willing to do a screencast on this  :P

bye,

 Jean

tom3d

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Creating dual pad controls only using PlayMaker
« Reply #16 on: August 08, 2012, 01:42:34 AM »
Great thanks!

Archivaldo

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Creating dual pad controls only using PlayMaker
« Reply #17 on: August 08, 2012, 11:09:15 AM »
that's great thank you very much!!!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #18 on: August 09, 2012, 05:07:25 AM »
Please wait until I do it  :P

mickman

  • Junior Playmaker
  • **
  • Posts: 62
Re: Creating dual pad controls only using PlayMaker
« Reply #19 on: October 24, 2012, 07:03:25 AM »
Regarding  MobileJoyStickControls  package:

The JoyStickBridge  has an X & Y variable ...  do I need to change this to get the character controller to move .. and if so, how ? 

I have it loaded in a scene... my character + Char. controller has several animations attached. If I hit play in Unity I can Alt click in the PM editor and see my character go from idle to walking.. great.

Currently I have a "Controller Move"  attached to  the Left Joystick Bridge State. + touch transitions.

 Any tips would be really appreciated.

 Mick


« Last Edit: October 24, 2012, 01:52:07 PM by mickman »

kmgilbert

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Creating dual pad controls only using PlayMaker
« Reply #20 on: November 09, 2012, 12:14:52 AM »
This never happened no actions were released for this ): im trying to use all playmaker and I still cant figure out how to make a basic two joystick controller.. meaning one for moving and one for camera panning.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #21 on: November 09, 2012, 01:39:20 AM »
Hi,

 The package provided earlier on this thread is fully working, so you have all the necessary actions to create this move and camera panning with it:

http://hutonggames.com/playmakerforum/index.php?topic=230.msg5664#msg5664

Have already tried to implement that? If so what is the issue you are having with it?


bye,

 Jean

magarcan

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Creating dual pad controls only using PlayMaker
« Reply #22 on: November 22, 2012, 06:13:00 PM »
I´m trying to make my controller using the provided package as base.

  • I´ve declared two Float global variables, Left_Horizontal and Left_Vertical.
  • I´ve changed the watch joystick state, in order to use my new global variables.
  • I´ve created a game object, that listen changes in global vaiables, write values in a vector3, and move my character controller.



It´s not working propertly, any help?

Cheers!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #23 on: November 23, 2012, 12:44:44 AM »
Hi,

It's because you need to get a simpler approach.

Simply always feed the "movement" vector with the joystick values and always inject it in your character controller. This will prevent you have to check for variable change.

Have you downloaded the samples from this forum? There is one here for example:
http://hutonggames.com/playmakerforum/index.php?topic=2476.msg11131#msg11131

With your setup, you are likely firing a "infinite loop" warning as you move around. Can you check in your console?

bye,

 Jean

magarcan

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Creating dual pad controls only using PlayMaker
« Reply #24 on: November 23, 2012, 05:58:44 AM »
Hi,

It's because you need to get a simpler approach.

Simply always feed the "movement" vector with the joystick values and always inject it in your character controller. This will prevent you have to check for variable change.

Have you downloaded the samples from this forum? There is one here for example:
http://hutonggames.com/playmakerforum/index.php?topic=2476.msg11131#msg11131

With your setup, you are likely firing a "infinite loop" warning as you move around. Can you check in your console?

bye,

 Jean
Yesterday was my second day learning Playmaker  ;D
I'm getting crazy looking for things, because everything is too scattered. Thank you very much for the links.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #25 on: November 23, 2012, 06:24:48 AM »
hi,

 yes, don't worry, you'll get there :) it takes some time to get acquainted with common tasks and how to tackle these common design patterns. Also, be sure to watch all the videos you can on playmaker.

bye,

 Jean

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Creating dual pad controls only using PlayMaker
« Reply #26 on: June 30, 2015, 09:43:02 AM »
Jean, please how can i conect this 2 values

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #27 on: June 30, 2015, 03:41:32 PM »
Hi,

Yes, you can save the joystick values into fsm variables in the left pad, and then instead of using "Get axis Vector", you will use "Get Fsm Float" and get these two variabled from your left joystick and inject them into "movement" vector3.

 Bye,

 Jean

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Creating dual pad controls only using PlayMaker
« Reply #28 on: June 30, 2015, 05:03:24 PM »
Jean, the Get Fsm Float, stores the value in float, and not in vector3.
What i need to do?
« Last Edit: June 30, 2015, 05:06:02 PM by nabilfx »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating dual pad controls only using PlayMaker
« Reply #29 on: July 01, 2015, 04:10:58 AM »
Hi,

 You can use the action "set Vector2 XYZ" to set a particular value of a Vector3, and so you can inject the joystick float values into your vector3 variable this way.

Bye,

 Jean