There's no need to set true/false variable for each instance of the variable, surely just landing on any button and setting it to true/false is fine. I see what you've done with the button checks though and it might not work. My approach would be to have any button linked to that moving platform with the same variable number. Then you can pick all buttons that have the same number (and are set to false) as the moving platform, and compare pickedcount, if its 0 that means all buttons are true and it can move. If you are always going to use 2 buttons with a platform you can of course compare if the buttons are true and that the pickedcount is 2, but the false way adds flexibility if it is more than 2 buttons.