Passing correct X/Y coordinates of multy touch?

  • Hi guys

    I am testing a touch control set up and I have two question.

    Even I got it mostly working as I wanted, I am not clear how the multi touch pass on coordinates. Here is an example of the touch objects position. Problem is that if I first touch the jump object and keep holding it while I try to move player immediately (by touching direction object) to right(side of the screen) it acts incorrectly and jumps to left.

    <img src="https://dl.dropboxusercontent.com/u/71343504/construct2/TouchTest03-01.jpg" border="0" />

    If you have chance to test .capx with touch screen to replicate an issue, touch and keep touching jump, while immediately trying to go with player to right side of the screen, it will jump left.

    I am using cocoonJS on iPhone 4 to test it.

    <img src="https://dl.dropboxusercontent.com/u/71343504/construct2/TouchTest03-02.jpg" border="0" />

    dl.dropboxusercontent.com/u/71343504/construct2/TouchScreenControlTEST03.capx

    My best guess is that, when I touch Direction object, it still passes ordinates of the first touch whatever it was. So how do I do it so it passes the coordinates of the touch that is touching direction object, where it is first, second or third couch.

    Oh and other question, can I use one touch UI layer for different layouts or I have to set it up with events so its get created same on start of each layout?

    Thanks guys.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)