Hello, can you help me?
I want to build a function to buy "speed" in my game.
I did so:
1- created a global variable called money, it starts with 100, (just for testing)
2- created a function called buy
3- created a button named "btn_speed_up", that button added an instance variable named cost with the value of "speed", 85 (cost for upgrade)
As did the code below:
Does not work. Nothing happens, can anyone help?
Thank you =)