What you are looking at in the upper picture is the sequence of instructions that are executed:
-disable the button hotspot
-lock the movement of the player
-change the material of the button to an emissive one (so that you can see that it has been pressed)
-change the position of the pressed button
-execute a sound effect (the typical “click”)
-Using a check, I make a check on a local variable, to see if the button pressed is the correct one, restoring the material of the button and its position in case of a wrong answer, or keeping everything and going to modify the local control variable so that it can be ready to be compared with the button that will be pressed next.
It seems quite complicated, and I admit that the first few times I tried it I had my headaches to orient myself and remember all the steps to follow, but then with practice and perseverance, I began to organize myself by following the steps noted in order to minimize the possibility of error (even if many times you make mistakes, and then sometimes you have to spend hours to find them in the middle of everything).
In any case, I think I’m lucky to have the possibility to manage the logic through this graphic interface, which helps me a lot, unlike having to write lines and lines of code of which I have no knowledge.
As I said before, Adventure Creator gives me the possibility to do all this without necessarily being a programming language expert, just by replacing the written code with this window representation.
I test all the possible combinations, making mistakes several times, inserting random sequences, trying in every way to create situations that bring to light the weak points of the logic that I have devised, and most of the times I notice errors that had not been foreseen, forcing me to take up the sequence of instructions again to modify it.
But at the end of the day, when everything works as it should, the satisfaction is great, and seeing the puzzle work, which a few weeks earlier was only an idea sketched on a sheet of paper, makes up for all the time spent creating it.