I need help with multi touch

Not favoritedFavorited Favorited 0 favourites
  • 7 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

  • Sorry bit i cant understand how you use this expressions. I cant find any s.mail.ru/Ssda/LZpu84K43 triggers (start) or (end) with expressions that can be used with Object. Do i need to create ane variables?

  • If you add a On touched object condition, you can select the touch type (start or end) when inserting the condition.

    Make sure you are using "On touched object", and not other conditions like "On tap object"

    Here's the manual link about it.

  • If you add a On touched object condition, you can select the touch type (start or end) when inserting the condition.

    Make sure you are using "On touched object", and not other conditions like "On tap object"

    Here's the manual link about it.

    I understand. i use 379 version, because i need to use Addon ValerypopoffTouchPlus. But it doesnt works in latest versions. In r379 i dont have this panel prnt.sc/laCPLFHXK5Pd . Is there any other ways to solve my problem?

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