How do I make an actor clickable only once?
I have a store in my game, where the player can purchase stuff with the points earned in the game. Some items are only available on a certain level.
So far I have an actor next to the item with a basic image of a lock. When the player reaches the level on which the item becomes available, the lock image changes to a "buy" image.
When the player buys the item, the image changes to a check, and I want it to stay this way, but if I change the scene and come back, the "buy" image will be displayed again, and it's clickable again.
How could I make it stay on the check image and be clickable/purchaseable only once?
(I accidentally posted in the Mac forum first, but I work on Windows)