Touch sometimes doesn't accept input

0 favourites
  • 4 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I encountered strange problem while working on mobile-targeted game. Sometimes when I tap on the screen nothing happens and it should and the same thing happend even when I play it on PC. So I stripped down the problem to a simple .capx project which I upload here. It works like this that when you tap above the character it moves up and if you tap below him it moves down. Just tap couple times up and down and I'm sure that sometime character won't move... In the project I disabled Mouse input event. When you switch input to mouse (turning of Touch) nothing like this happens. Input is always accepted correctly. I don't know what's wrong and if I can fix it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think you should use something other than the Tap gesture if you want to detect fast taps. Remember it has to detect double-taps as well, so if you tap fast it will detect that. It seems to work fine if the taps are slow.

    See the capx. I changed it to Touch:On any touch start. I also changed a bit of your logic (structure only).

  • It's perfect! Thanks

  • It's perfect! Thanks

    Not really a trick, just more concise logic.. Less code=easier reading/maintenance. Remember 'every tick' there is not really every tick.. Just when the conditions are true.

    Oh yeah as you saw I changed it to portrait for easier testing for me.

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