Hi there! I’m developing a VR Game for collage work and I need help in setting up a sequence where buttons need to be physically pressed in order to open a box. I already have the buttons set up so its just the combination that is missing.
You basically give the buttons a number from 0-x, and as the player presses buttons, store the numbers in an array. When they’re done, just compare the array with a predefined ‘answer array’. Just drag from the array variable, and search for ‘identical’ ( I think it is ).
You have to choose the way the puzzle works though. One of
1 Keep storing button presses, and cycle back round to the start of the array, and watch out for the correct sequence. It’s a pain, because you have to write some code that looks for the sequence.
2 Make them press another ‘this is my answer’ button. This is easier because you can just compare the arrays, and if they’re wrong just clear they answer array and let them try again.
Thanks, Thats cleared up a lot of the confusion I was having!