How do i create a analog stick.

swiftskater1swiftskater1 Member Posts: 97
edited November -1 in Working with GS (Mac)
I want to create an analog stick to move an actor

Comments

  • TheTTheT Member Posts: 80
    Hey, codemonkey
    how can I make the joystick work with physics activated without the stick being "stucked" ?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    give it an acceleration opposite of gravity?
  • TheTTheT Member Posts: 80
    well, joystick just falls down after a while if not used when acceleration in conter-sense.
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    Codemonkey in the joystick example you made what are the five touches for?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    The logic for the 5 touches is there because the way that touch currently works.

    The first touch on screen changes attributes for touch 1, 2nd for touch 2, etc up to 5.

    If you release any of those, its position is opened up. i.e. if you have 4 touches and release #3 the #3 spot is now open for the next new touch.

    So to make sure the 2 joysticks can be used and you don't have to worry about touching one before the other before any other touch, all that logic needed to be done.
Sign In or Register to comment.