playMaker

Author Topic: playmaker UI joystick limiting the thumb graphic[SOLVED]  (Read 651 times)

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
playmaker UI joystick limiting the thumb graphic[SOLVED]
« on: May 08, 2021, 03:28:00 PM »
I would like to limit the Thumb graphic so that it only moves left and right with no up or down positions.

Is this possible, if so can you help me do it?
« Last Edit: May 17, 2021, 02:00:50 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: playmaker UI joystick limiting the thumb graphic
« Reply #1 on: May 13, 2021, 09:34:49 AM »
Hi.
You can add a 'Get Vector2 XY'
Then store the X value
Then on the 'Rect Transform Set Anchored Position' set "position" to none and set the stored x to X (see image)




colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: playmaker UI joystick limiting the thumb graphic [SOLVED]
« Reply #2 on: May 16, 2021, 12:34:45 PM »
sorry for the late reply, worked great thankyou