How to set longer interval in "Is In Touch" input method

0 favourites
  • 3 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • Dear All,

    I try to learn to make a simple game, it is a running game that instantly jump when i tap the device. Initially i use "on any touch start", as shown in construct example, as the input method. However, when i export it to Cordova and use the intel xdk to build and publish it only as android game, it wont work. (Note: Due to of the app size, i make it in android build, instead of crosswalk build). Every time i tap the device, the sprite jump twice consecutively instead of 1 (one) jump. I cant figure whats wrong with this, since my code is very simple.

    I tried to use the "tap gesture" but the tap mechanism is not responding instantly. I guess it is because the input only counted after the touch is released from the device.

    So i tried for another input method: "Is in touch", which respond greatly as i meant to in android build. However if i press continuously, the sprite is also continuously jumping. Is there any idea how to set longer interval in "Is In Touch" input method? So the sprite wont instantly make another jump right after one jump.

    Sorry for this long description. I hope i give a clear explanation of what i'm trying to do. Thanks before for your help.

  • try ( trigger once while true )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great advice Carbincopy! It run well in construct simulation. Going to try for XDK android build.

    Many thanks for your advice!

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