I made a counter code system.
The top buttons increments a counter, and the bottom buttons decrement a counter.
How do i make it so if the player got the correct code, a barrier opens?
I made a counter code system.
The top buttons increments a counter, and the bottom buttons decrement a counter.
How do i make it so if the player got the correct code, a barrier opens?
I think that checkers can do that.
You could make it so the counters update a property and the property will add up to the numbers in the code. then make a checker that when the property is correct it will unlock the barrier. you can also make the counter disable when they are the right number (i dont know if this works)
You could deactivate the buttons
No, doesnāt work.
Oh yeah forgot
Oh sorry, just trying to come up with ideas
Give The Counters Targets?
What do you mean by that? Iām getting confused.
Why Donāt You Make All The Buttons Deactivated Except The First Set And When The Counter Reaches Itās Target, It Activates The Next Set. When The Last Set Is Done, It Deactivates The Barrier. I Donāt Know If It Works.
It works, but i want to try to find a different way, like if you put on the correct code and press the āReview Codeā Button, then the barrier will open, but if you put a wrong code and press the āReview Codeā Button, then itāll send a notification saying the code is incorrect.
I Donāt Think I Can Do That. Maybe Ask GimSolver Or Haisai.
Like this?
You can make all the counterās target 1, than put down another counter, make the target 4, and connect all the other counters to this one. Then when target reached, deactivate barrier.
You can also make all the buttons that are wrong reset the main counter.
Link each row of 2 counters (vertically) to a property.
Iāll be using āInput 1ā for my property, āInput 2" and so on.
Once you have linked each row of counters, place another button/trigger.
This is the āInput Codeā button.
Make the Checker check for 4 properties and put all your counter-linked properties in it.
Make sure the check is āequal to.ā
Change the checkerās condition to āAll Checks Must Pass.ā
Finally, wire the Button/Trigger to the Checker.
(Button) Button Pressed --> (Checker) Run Check
Then, wire the Checker to whatever event you want to occur when the player gets the correct code.
Btw, this is just an add-on to your current system and you donāt need to delete anything.