A little help with some switches
So i plan on have switches in my second game that i am trying to finish. So just to get an idea. There will be a switch in one room, that will open a door in another. Now I know to use a boolean to control that. My question is what about when there are multiple switches on one level?
I dont have code to screenshot, but like i said i understand how to activate one.
Game lvl att
Boolean: switchactive false
When switch is touched, change att switchactive to true
If switchactive is true open door.
Now what if there are more switches. Do I have to have more game lvl attributes? like switchactive 2, 3, 4, etc...
I plan on having no more than 6 switches on some levels. Thanks for any help or suggestions