Multitouch not dragging Please Help

0 favourites
  • 10 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi

    In my game the 2 players drag their player to move, and tap to shoot.

    When i test it, ( I have both previewed it, and exported it) if one player is moving, it will NOT let the other player move. I have tried many things and i can't seem to find an answer. Please Help

    Anything will help!

    Thanks In advance!

  • did you exported it in android and tested it in android too ?

    if you did, then check the device info ... maybe you don't have Multitouch supported in your device

  • Thank you for you're response,

    I have exported it to android, and tested it there, and it doesn't work

    I have a galaxy s5 with multitouch enabled, so I do not believe that is the issue

    Do you need a .capx? I will try to submit one when I get home

  • In what way did you implement the multitouch?

    Are you using the drag and drop behaviour on the players or are you using TouchID, XForID and YForID?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • LittleStain touch ID

  • LittleStain touch ID

    If you are you setting an instance variable on the object to touch ID on touch and using that variable referencing the touch, it should work..

    Could you share your events?

  • LittleStain I Tried to post a .capx i could not figure it out...

    I'm not quite sure i understand... My Events Run like this

    NOTE: I use the rexrainbow behavior "MoveTo"

    LeftMovePlayer = Global Variable

    RightMovePlayer = Global Variable

    On touch1 start >Then Set LeftMovePlayer to 1

    If touch.x < layoutwidth / 2 >Set "Left Selector" position to (Touch.x, Touch.y)

    And touching LeftPlayer >Create Object "Left Selector" on layer 0 at (Touch.x,Touch.y)

    >Move Left Selector to bottom of layer

    On touch 0 start >Then Set LeftMovePlayer to 1

    If touch.x < layoutwidth / 2 >Set "Left Selector" position to (Touch.x, Touch.y)

    And touching LeftPlayer >Create Object "Left Selector" on layer 0 at (Touch.x,Touch.y)

    >Move Left Selector to bottom of layer

    If LeftMovePlayer = 1 >Destroy "LeftSelector"

    No Touch >Set LeftMovePlayer To 0

    f LeftMovePlay = 1 >Move To "LeftSelector"

    nd Touch.x > layoutwidth / 2 >Set "LeftSelector" position to (Touch.x,Touch.y)

    That is the events for the left side, The right side is the same but Changed for the right...

    The goal is to Have both player to be able to be dragged to move at the same time, but they need to have a certain speed. what do i need to change / re-do?

    Thanks For all of your help so far ,

    Ian

  • You probly mean something like this:

    https://dl.dropboxusercontent.com/u/485 ... oveto.capx

    (Unfortunately couldn't test it though, so it might not work)

  • LittleStain Thank Your Sooo much!! That is Exactally what i have been trying to build!!!

    And thank you for the time you took to build the .capx

  • i think i am not very good at the touch events ... ( i didnt work on a android game until now).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)