I have a bunch of skins in a game I am making, and each skin has a global variable to check if it is unlocked or not (Example: BallSkin1, BallSkin2, etc. 0 means locked and 1 means unlocked). All the buttons to switch skins are just the same sprite with an ID instance variable so I know what skin it is. I want to check if the skin is unlocked, but can't figure out how to use the same "base" event for all of them instead of making 35 copies of all those events. I need to make a way to merge the string "BallSkin" and the ID variable, then return that without it being a string (so the skin with ID 4 would be "BallSkin" & 4 to make BallSkin4).
I am trying to use "BallSkin" & SkinButton.id to make this, but it isn't working for some reason.
Is there a way to return that as a non-string to check for the global variable?
Sorry for all the reading :)