Touch Problem

0 favourites
  • 4 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • I'm having some issues with touch and how to confine an object in touch to a certain area. This requires the use of touch commands as 2 touches at the same time need to be present when the problem occurs.

    Dropbox Capx -

    Dropbox CoccoonJS -

    Above you'll find the capx and an extracted cocoonJS.

    (Instructions on how the game currently works)

    In my game I move an object labelled "Analog_Area" to where the users touches the screen and another object labelled "Analog_Stick" to the same place.

    After the initial touch the user is unable to move the Analog_Area but is free to move the Analog_Stick, this allows the player to move the on screen sprite.

    The button on the right side of the screen labelled "Analog_Jump" allows the player to jump.

    The large green box is the only area the controller is allowed to appear.

    (Problem and how I expect it to work)

    My problem is when the user touches and holds the jump button and then tries moving, the movement analog positions itself on the right hand side of the screen, no longer on the green touch area.

    I have tried to lock it to the touch area but I can't seem to figure out how.

    Any help on this issue would be appreciated.

  • Bumping as its been a few hours since this was posted. I still can't understand how to stop this problem from occuring

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump as I still can't work out a solution to this problem

  • This is the last bump, after this I will just accept that the problem can't be solved.

    As always any advice to why this is happening will be appreciated

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