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

Get help using Construct 2

Post » Wed Feb 03, 2016 12:04 am

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.
B
3
Posts: 2
Reputation: 179

Post » Wed Feb 03, 2016 12:26 am

try ( trigger once while true )
B
29
S
13
G
10
Posts: 355
Reputation: 8,327

Post » Wed Feb 03, 2016 2:03 am

Great advice Carbincopy! It run well in construct simulation. Going to try for XDK android build.

Many thanks for your advice!
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: jezjones24, Lancifer and 15 guests