I understand that this way works, but I'm coding a 25+ levels game, and I feel like that this is just way too much work that clutters the work space, even if it is a copy and paste thing. Any way that this could be made simpler that uses less coding, but still works for 20+ levels?
No, I'm not using for each. I just set it to 'If animation frame = 1, go to "level" & SelectionButton.level_Number' (SelectionButton being the buttons in the level select, level_Number being the instance variable that shows what level each button is for). Then, I set 'If animation frame = 0, play sound (whatever sound i want)' which means the button is locked. I also have it like, 'if (global variable) is > or = to SelectionButton.level_Number, set ani frame to 1', and 'if (global variable is < SelectionButton.level_Number, set ani frame to 0'. Is there something that is off with this coding? I don't know why it doesn't work.