Decoding the safe system

Hello everyone,
Like at tittle, im trying to make something like decoding system.
Player must find the code at the game map, and at the end he must insert this code to get “magic word” .

I want to make 5 touch buttons, each button will store one letter, if the combination of buttons are correct, then player will get “magic word” at screen.

Can i get information, what I must use to reach it? How i can do this?

Best Regards! Have a nice day!
Screenshot above/

This is interesting. I would probably use a variable to store the string.
Make two variable strings; HiddenCode = “ACABDAE”

If key Num1 is pressed → Add “A” to a String Variable.
If key Num2 is pressed → Add “B” to a String Variable.
Etc.

Assuming you a blank string like SecretCode = “”:
When you add a text it will look like: SecretCode = “a”

as long as you don’t SET TO when you adjust the string you can save text into it.
If SecretCode = HiddenCode: → Show “Magic Word”.

1 Like