So my first game is kind of a shooter with an among us and my plan is kinda like Ssundees’ random roles kind of thing and my spinoff of the imposter is the saboteur and how am i supposed to make it cause I’m new to coding in fact the only other project I’ve done is on scratch and that was with a lot of help from a friend who is descent at coding while i mostly did the art but this is my first project by myself
umm so you want help with making a locked door?
Yup mostly that’s all i need just wanted to give you guys some context
Is it random auto-lock, or is there someone who closes them using a tablet?
Barriers, its kinda simple. If your doing it so you need to unlock the doors then just set a transparent button to turn it off with 5 secs to hold it to deactivate buttons, then have the barrier and button only turn when a channel goes off (Ex: DoorsLocked), then have the button be deactive after pressed untill the sabatoge happens again. And set a overlay on the screen with sabatoge list on it, then you can put a cooldown on when you can press it,
Usually in Among Us, it takes 10 seconds to unlock.
That’s the one I’m new at coding in general sry about the noob question guys
I was using 5 secs as an example, I don’t play polus often
It’s skeld that I’m talkin about
Can i just set it to open after likev10seconds automaticly
It doesn’t require block code at all.
First, make a barrier minimap (no collision, ofc), and then put down invisible buttons that activate barriers. Then wire the buttons to a 10 seconds counter-trigger clock that deactivate the barriers.
So like a little sabotage room?
Yeah- just use a wire repeater. Wire the barrier or prop to the wire repeater, then set the delay to 10 sec, finally wire the wire repeater to the barrier/prop.
This way, if the door isn’t unlocked, its unlocked, and if its already unlocked, it does nothing.
Hope this helps!
I’m so sorry but i don’t totally understand slim I’m sorry I’m new to coding
It doesn’t matter if the sabotage is a room or GUI button, it just needs to transmit on a channel or wire to start the sabotage.
I’ll try to get a screenshot but my internet is slow.
Ok so it just needs to transmit a signal to the prop or barrier to get it to. Closeright?
game overlay>repeater>counter>barrier
I’m using only wires in this screenshot.
Basically in this photo, the trigger activates the whole thing here.
- It activates the barrier, acting like the door closed.
- It starts a 5 sec delay to a wire repeater.
Once the 5 sec delay is over in the wire repeater, it opens the door, or deactivates it.