I need help with multi touch

0 favourites
  • 4 posts
From the Asset Store
Buildings - Isometric view - PNG transparent - multi styles, multi fonctions buildings
  • Hi there!

    I need help with multi touch.

    I tried to figure it out using manuals and official specifications, but I can't solve the problem.

    I have an object "Snake" and three control buttons: left, right and acceleration. When I press the left/acceleration or right/acceleration combinations, the object moves correctly. But if I release the left or right button, the acceleration button is also canceled and I need to press it again so that the snake moves forward without acceleration. As I understand it, when I release one of the buttons, the TOUCH plugin thinks that I am taking my finger away and stops perceiving other touches at that moment. My task is to make the buttons work regardless of pressing the others. Please help, I am attaching the project. Thanks!

    drive.google.com/file/d/19gWOkvaCzNquBP38rzZ_ohKrKXWywds0/view - c3p file here

  • That happens because the On any touch ends condition applies whenever any thouch input ends: as soon as you lift your finger from the screen, the condition will be triggered.

    The fix is very simple.

    Instead of having:

    On any touch end && is touching speedBtn

    simply have a single condition:

    On touched speedBtn (End)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, but i still dont understand. Could you show full expression?

    That happens because the On any touch ends condition applies whenever any thouch input ends: as soon as you lift your finger from the screen, the condition will be triggered.

    The fix is very simple.

    Instead of having:

    On any touch end && is touching speedBtn

    simply have a single condition:

    On touched speedBtn (End)

  • Like this

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