I'm trying to build a game where the player can turn around to see the 4 different walls in the room. For testing purposes, I just have text ("Wall1", "Wall2", etc) which represents each of the four walls.
I'm using a "controller" element (an empty block) to set the conditions. In this block I have a value ("wall") that I set 1 digit up or down whenever the left or right button is tapped, respectively. So for example:
When "right" is tapped Check if/else - "Wall" = 1 Set Value "Wall" to 2 Else Check Once if "Wall" = 2 Set Value "Wall" to 3
and so on ("When Game Starts" the value of "Wall" is set to 1). And then the same for the "left" button except it goes down by 1 digit:
And then I have each of the Walls set to Invisible when the player isn't "facing" that wall, like this:
For some reason, it works perfectly for the "left" button, when rotating through 1, 4, 3, 2, 1 etc but when tapping "right" there is some kind of glitch that causes it to skip 3 and 4. I've checked it thoroughly and I can't figure out why it's doing this.
Does anyone have any ideas? I've tried to "Wait" a bunch of different ways, and I tried a few different configurations of the Check If/Else blocks but this is the closest I've gotten.