Hi all. I’m trying to make a door puzzle using 4 buttons. And I have difficulty understanding the flow of the program. Can anyone help ???
What’s the puzzle? ( It’s not obvious from the code ).
Learn to write your own BPs. Otherwise, you’ll be posting here a lot.
Start with a simpler puzzle. Maybe start with just two buttons.
In fact, you could start with just a light switch – an On/Off button. There is even a tutorial for that.
More advice: instead of giving each button a numeric value, use a text value for clarity. What are those four states? Your code/BPs should self-document. That will make it easier for you (6 months later) and others to understand.
There might be an error in Pic2, Button 4 is always set to 1, regardless of what Button 1’s value is. It’s value will never change. If Button 4 is always set to a value of 1, then it isn’t needed. Unless it’s a red herring.
Puzzle to press 4 buttons and the door will open.