I'm building an upgrade-type game, where players can purchase upgrades for currency.
My predicament is that when the player clicks the sprite to trigger the upgrade, they can click it again and reset the timer. What I'd like to accomplish is this: disable the sprite (that triggers the upgrade) until the remainder reaches 0. I'm currently using rex_timer and timeline for the timer feature.
Furthermore, I'm having a bit of an issue where the player can be charged more than once for the upgrade WHILE the timer is counting down. What I'd like to accomplish is this: require that the player have >= 10 coins to purchase 1 upgrade. Any less than the required amount of coins, also disables the sprite (that triggers the upgrade) until the player has the required amount of coins.
EDIT: Plinkie's suggestion regarding creating a variable and changing its value depending on the state of the script, should work (in theory). I believe that implementing this suggestion will also solve the problem with being charged more than once for a single upgrade.
Any help is GREATLY appreciated, and I thank you in advance.