Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: shinodan on January 25, 2013, 05:15:55 PM

Title: Joystick axis
Post by: shinodan on January 25, 2013, 05:15:55 PM
I know this is a really noob thing to ask, but hey im having my first go at trying to make a game that works with a joypad!

I have mapped my inputs all well, but i have no idea how i would get the axis of the right joystick for in game use,

I have it working with keys, there is a dude and he looks in the direction of the mouse, for that i just used the mouse look action, does anyone know how i could achieve something similar with the joystick?
Title: Re: Joystick axis
Post by: derkoi on January 25, 2013, 06:32:21 PM
You use the get axis action.  ;)
Title: Re: Joystick axis
Post by: shinodan on January 26, 2013, 03:58:26 AM
Already tried, when i enter "Joystick 0 axis 0" i get an error saying that its not set up...
Title: Re: Joystick axis
Post by: derkoi on January 26, 2013, 03:59:22 AM
and did you set the joystick up in the input settings?
Title: Re: Joystick axis
Post by: shinodan on January 26, 2013, 02:40:49 PM
Okay so no error anymore but i have the get axis action storing Rightjoy H to a float, but its not picking up any movement..

screenshot below.
Title: Re: Joystick axis
Post by: derkoi on January 26, 2013, 03:21:14 PM
Use the get axis vector, then split the vector 3 in to XYZ floats.
Title: Re: Joystick axis
Post by: shinodan on January 26, 2013, 05:19:04 PM
The vector still isnt getting any response from the joypad, is my input setup correctly? the right stick horizontal i thought was 4th axis, but it wont let me put anything in negative or positive button :S
Title: Re: Joystick axis
Post by: jeanfabre on January 28, 2013, 01:36:04 AM
hi,

 It's likely a set up issue unfortunatly. Have you looked around the web for some joystick bridges to make it easy to set it up?

bye,

 Jean