Link to image (cannot put hyperlink as of now):
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.
would adding timer behaviour work?
Develop games in your browser. Powerful, performant & highly capable.
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.