Single Touch multiple input

  • Is it possible for a single touch that overlaps two on-screen objects to issue two different commands?

    In other words, I want my ship to be able to move forward and turn at the same time. Currently this isn't possible, unless the user presses both buttons with different fingers.

    <img src="http://i.imgur.com/qlpcshP.jpg" border="0" />

  • I just did a test and figured out how to do this.

    Nevermind this thread - just make sure collision boxes for your buttons are colliding and it's totally possible!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Excal

    Would you post a .capx to show us ?

    Thanks !

  • I won't share my .capx since it contains copyrighted art assets.

    Basically just make sure the collision polygons cover your objects entirely (the defaults are often fine for this), and then overlap your objects like so.

    <img src="http://i.imgur.com/0Z8Xb2T.jpg" border="0" />

    Notice the right button and the go button overlap? This means if a touch input is hitting both of them, the player will move forward and turn right at the same time. It's kind of a tricky movement, since it's not as easy as using arrow keys on the keyboard, but it works.

    I personally had to reduce the turning speed on touch compared to the keyboard to make it more responsive.

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