hello i am trying to set a price for each character then the player after buying the character he will be able to use it.
so what i did was 2 layouts: the first one character sprites if you click one it will show you a menu yes to buy and no to go back, so for the buying part it will subtract 100 gold from your total gold and it is subtracting then to choose a character you have to go to the 2nd layout to select what you bought but how to transfer the character to the 2nd screen. also for the the first layout i am stuck i kept clicking yes to buy but the menu wont go away even though coded it like this (gold>=100)do this(set menu and the bought char invisible).
*if there is a better way please let me know.
thank you guys <3