Hi! I'm totally new to Animate but excited about getting to know it better. My friend who's been on here a long long time recommended I check it out, so I hope I'm in the right place. Hi.

I'm building a 5 room escape game, kind of like an escape room, except there's 5. It's set on a space station.

I want to have two instances of conditional statements, which I *think* would work with an if or a boolean but I'm a code novice. For example, I have a helmet button, and an airlock button. What I'd like to have happen is the airlock button (butt_airlock) isn't active until the user clicks the helmet button (butt_helmet). (The other one is the fridge (butt_fridge) isn't open until the user reveals the food's code (butt_food))

My current code is really basic:

//CODE THAT MAKES FRAMES STOP
this.stop();

// R O O M 1
// Code that makes this button live
this.butt_hatch.addEventListener("click", butt_hatchAction.bind(this));

// Code that makes this button work
function butt_hatchAction() {
this.gotoAndStop(1)
}



// R O O M 2
// Code that makes this button live
this.butt_fridge.addEventListener("click", butt_fridgeAction.bind(this));

// Code that makes this button work
function butt_fridgeAction() {
this.gotoAndStop(2)
}



// R O O M 3
// Code that makes this button live
this.butt_ladder.addEventListener("click", butt_ladderAction.bind(this));

// Code that makes this button work
function butt_ladderAction() {
this.gotoAndStop(3)
}



// R O O M 4
// Code that makes this button live
this.butt_airlock.addEventListener("click", butt_airlockAction.bind(this));

// Code that makes this button work
function butt_airlockAction() {
this.gotoAndStop(4)
}



// R O O M 5


I hope this makes sense! If you have any questions please don't hesitate to ask. Thank you so much!!