How would I go about making a lock-picking system?

I’m just not sure where to start, any help would be appreciated. Thank you.

I’ve seen at least 10 different lockpicking systems in games. Some betters than others. The implementation will depend on how you envisioned it. You’re not giving much to work with here :wink:

Do you have anything particular in mind? Is there something specific you’d like to replicate? You must have an idea regarding how it would/should work, surely.

Something like Skyrim/Thief games? Think of it as a mini game, a self-contained system. Break it down into parts, win/lose/replay scenarios, tools/abilities the player has at their disposal, time constraints, difficulty curve.

Thanks for the reply! I think I would like it to be similar to Fallout, having it be semi 2D or completely 2D. Sorry for not having much content in the question.

Have a look at this, hopefully it can serve as a starting point of sorts:

220832-capture.png

The pin had its pivot adjusted so it rotates at the anchor point.

Mouse rotates just the pin, clamping available angle. Spacebar rotates both the keyhole bit and the pin.

https://gyazo.com/e015cd90e030e48094fc32c65097b744

This obviously needs more work. Next step would be to determine the angles that allow the lock rotation without applying damage to pin.

I think I have an idea of how to work through this now. Thanks for giving your time to help!