0 Favourites

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

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • try ( trigger once while true )

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
96 57,361
bitworks's avatar
bitworks
Unread hot topic
85 7,285
shimo's avatar
shimo
Unread hot topic
88 9,241
goldentreee's avatar
goldentreee