Hello,
I have a global variable called Coins
When I right click I spawn an instanced object
When I right click I subtract 5 coins from the global variable Coins
The trouble is I can right click as many times as I want and it keeps subtracting coins and placing the objects down.
How can I prevent this ? Basically what I want is that when the global variable of coins is less than or equal to XX don't subtract anymore coins from the global variable and certainly don't spawn another wall ...
Thanks!