Saltar al contenido principal

puzzle_combination_lock

A row of buttons or levers acts as a keypad. The player presses them in sequence to enter a code.

Fields

FieldTypeDescription
digitsList<Var<Position>>Digit button positions. Index 0 is digit 0, index 1 is digit 1, and so on.
codeList<Var<Int>>The unlock code as digit indices. [0, 2, 1, 3] means press digits 0, 2, 1 then 3.
digitPressSoundSoundPlayed when a correct digit is pressed.
wrongDigitSoundSoundPlayed when a wrong digit is pressed.
solveSoundSoundPlayed on completion.

See the shared puzzle fields for lifecycle, timing and trigger options.

How could this be used?

A vault keypad whose code is written on a note found elsewhere — with maxAttempts set to 3 and cooldownOnFail to a minute, so brute force is not an option.