Hey everybody,
First time posting, I've looked for several hours on the forums and manuals for my answer and I apologize if I've missed it somewhere. I'll try to explain the best I can what I am trying to accomplish.
I have created an upgrade shop in my game (layout). In this layout i have added buttons that upgrade stats and such. I am trying to make those buttons disappear after they have been clicked and the upgrade obtained. Currently every time i switch back to my main(layout), and then back to the upgrade shop, the buttons are still there. Any help would be greatly appreciated.
Update:
Ok i got it working by setting a variable change when the button is clicked. If value = 0 the button is visible if value = 1 the button is invisible (pretty much a true false). Is this the best way to do this if I plan on needed a lot of these buttons to work?