I'm setting up a password lock for a door in my game where the player enters in a numeric password. I have it functional where the player can use the keyboard to type in numbers and press enter to check the code. However, I would ideally rather have the player using UI buttons to enter in the password rather than typing on the keyboard. I'm not sure how to go about this, as the only option I see is to Set the full password rather than inputting a single digit at a time (using action lists run by AC UI buttons). Any help would be much appreciated!
Additionally, I want the buttons to be set up in a grid: 3 X 3. When I set buttons up like this and attempt to use the keyboard navigation (I'm using direct control btw, not using mouse / cursor in my game) pressing up and down vs left and right does the same thing. Meaning I can only select the buttons in numerical order. For example if the top three buttons are 1,2,3 and the next row is 4,5,6 and I'm highlighting button 1, I'd have to press right or down three times to get to button 4 (instead of the preferred result of being able to just press down once). This part is more minor but would be great to know how to set it up, if I'm able to.
Comments
For example, say the "6" key is the third in the sequence - so you should press it when the score is two. Using Variable: Check Actions, have an ActionList that does something like:
If score = 2, score = 3
Else score = 0