Reduce sensitivity on touch buttons

Get help using Construct 2

Post » Fri Jan 10, 2014 6:32 pm


Link to image (cannot put hyperlink as of now):
http://i179.photobucket.com/albums/w315/Johnshi/spawn_response.png?t=1389378210

When you do not put any delays when using the Touch input on any object, it will feel super-responsive, which may not be always helpful in RTS games.

Right now, when I touch the unit spawn buttons, it spawns units quickly, which I do not want. I want to properly control the cooldown rate when the user touched the buttons.

I tried using the System and instance variables for the families but I do not get the reduced 'sensitivity'.

How can I successfully put a delay in accepting touch input to spawn units?

Any help is appreciated.JBRPG2014-01-10 19:19:38
B
10
S
2
G
1
Posts: 13
Reputation: 1,134

Post » Fri Jan 10, 2014 6:41 pm

would adding timer behaviour work?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 10, 2014 6:46 pm

I have already tried under System timer, but the use of instance variables do not take effect


Again due to vague reputation restrictions without explanations, I cannot provide images until I reach it.

System -> every 0.2 seconds decrease counter on cooldown timer

and then check the unit buttons if the timer reached 0. If cooldown timer is 0 and unit spawn button is pressed, then the unit shall spawn, otherwise, it will not spawn a unit.
B
10
S
2
G
1
Posts: 13
Reputation: 1,134


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests