aight
i’m trying to use if statements but can’t get this thing to work
i want to check if another button is visible on release of a button
to determine what action to be taken.
the ‘gotoAndPlay(“firstscene”,1)’ is just there as an outcome, will be changed later.
anyway this is the code i’ve got on the button i’m pressing.
blobyellow2 is an instance of a button blobyellow
is it because it’s an instance that it’s not working?
on (release) {
if (blobyellow2._visible = true) {
gotoAndPlay(“firstscene”, 1);
}
}
please help. i’m very tired
edit:
sorry forgot to put what’s wrong with the code.
it acts as though the statement is correct no matter if it is or isn’t.