Enable Multitouch

Benjamin_m5Benjamin_m5 Member Posts: 646
edited November -1 in Working with GS (Mac)
Hi

How can I enable multiouch in my game? I want, that I could press two buttons at the same time. How can I make it? I have now in my actor. Rule: when touch is pressed change attribute. But I can't touch two buttons at same time!!

Comments

  • Benjamin_m5Benjamin_m5 Member Posts: 646
    No... that's not that what I mean. I mean: I have a race game. Now I have four buttons on the screen to move the car. Vorward, back, left(rotate), right (rotate)! Now I want that I could press the Vorward and left button at the same time that i can drive vorward and make a leftcurve.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Look at code monkeys dual joystick demo it has a multitouch system. You have to set up several rules to tell which touch number is touching each buttons and then you can base your rules for the buttons off that.
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    where can I find code monkeys dual joystick demo?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    All you have to do is this:

    The left button have it rotate the car left
    The right button have it rotate the car right
    Them the forward button have it accelerate the car relative to ACTOR
    Same with back have it accelerate backwards relative to actor

    Since it's relative to actor it will accelerate whatever is forward on the actual car
    So if your pressing up and right it will curve right
Sign In or Register to comment.