I need help with a Lock Combination badly

So basically I want a lock combination of some sort. But I don’t want it to be a hard and complicated one like some that I’ve searched up. Instead, I want a thing less complicated and I want it to be involved with buttons. I also want it so that if you put in the wrong combination something bad will happen. I’ll show you where I’m at right now.

would It be the same code everytime?

1 Like

yes it would be the same code every time

1 Like

then just make it so whenever you press the right button it decrements a counter and if you press wrong it resets the counter

1 Like

I like that idea, i could experiment with it.

well that´s pretty easy
just use a couple buttons and a counter(resets when it reaches target of 10) that updates a property
and a checker that checks if all the properties are all equal to what their numbers are supposed to be
and when check fails ït does the horrible thingy
and when check passes it does whatever

2 Likes

erm, i’ll have to read that again like 16 times but ok! Not complicated at all! thanks for the ideas guys!

I was just about to say that but in a similar way.

why not my counter idea? it seems like it works

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.