Scrap Mechanic

Scrap Mechanic

KrazieFox May 12, 2020 @ 7:44am
What is the EASIEST way to make a light blink?
I have tried using a timer, a logic gate and a controller - I cannot figure out a way to simply make some lights blink.

Please don't suggest using a Mod, I won't use mods.

Is it even possible? If not then at least I'll know.

Please explain it in a clear, concise 'Idiots Guide' fashion.

Thanks in advance.
< >
Showing 1-13 of 13 comments
Duck May 12, 2020 @ 7:46am 
timer combined with a single pulse logic setup
KrazieFox May 12, 2020 @ 7:47am 
Originally posted by Duck:
timer combined with a single pulse logic setup

What is a 'Single Pulse Logic Setup'?

(Imagine trying to explain it to a 5 year old) :P
Last edited by KrazieFox; May 12, 2020 @ 7:48am
NootNoot May 12, 2020 @ 7:57am 
if u mean blinking in terms of an indicator u take two gates a timer then set one of the gates to nand and wire them up in a circle. If u then connect a switch to the and gate you can turn it on and off.
KrazieFox May 12, 2020 @ 8:25am 
Originally posted by FireStorm:
if u mean blinking in terms of an indicator u take two gates a timer then set one of the gates to nand and wire them up in a circle. If u then connect a switch to the and gate you can turn it on and off.


It won't go in a circle, the light will only connect to one gate and noting else, so cannot make a circle.

So, I'm guessing you can't make a light flash in Scrap Mechanic easily :(


I am making a 'warning light' - similar to that found on roads when it has been closed - I just need an easy Flashing system I can leave and forget. :(
CoopedUp May 12, 2020 @ 8:31am 
It's possible and fairly easy once you know how to do it. Like Firestorm was saying you use two Logic Gates and a Timer with a switch. Here is someone using the set up to trigger a water cannon ...

https://www.youtube.com/watch?v=mfRbcIwYD44&t=545s (At about the 9min mark)

Just use the same loop to connect to a light and adjust your timer.
TTR May 12, 2020 @ 8:32am 
Pulse generator setup in vanilla:
-Put a 1x2 somewhere.
-Put a piston on one of the blocks
-Put a couple blocks side by side with the piston.
-Put a sensor on the end of the couple blocks (such as it detects the piston pushing a block in front of it)
-Put a block on the piston
-Put a logic gate somewhere on the creation and set it to XOR (exclusive OR, I will explain why below)
-Put a switch somewhere on the creation.
-Connect the sensor and the switch to the logic gate.
-Connect the logic gate to the piston
-Set the piston to correct length (speed is not important)
-If you want to fine tune timing you will need an extra timer. The sensor has to be connected to the timer instead of the logic gate and then the timer should be connected to the logic gate.
Then you can set your pulse-width in ticks.
-Hit the button and watch it pulse. Your output is on the logic gate.

Reason this works: Exclusive OR outputs true if ONLY 1 of the inputs is ON. If 2 inputs are ON then Exclusive OR sends false.
When the sensor detects the block: Sensor+Switch are both on so the logic gate turns off. The piston moves backwards which turns Sensor back off -> piston moves forward again.
ainsleys_nan May 12, 2020 @ 8:35am 
imagine a triangle with one point at the bottom and two at the top. put a logic gate at the bottom and set it to 'or', to the top left put another logic gate set to 'and' and the add the timer to the top left of that triangle and set that to whatever time you want. connect to the light to the timer and connect a button to the 'or' logic gate the just power the logic gate.
connect them in the order i mentioned them.
KrazieFox May 12, 2020 @ 8:42am 
Originally posted by ainsleys_nan:
imagine a triangle with one point at the bottom and two at the top. put a logic gate at the bottom and set it to 'or', to the top left put another logic gate set to 'and' and the add the timer to the top left of that triangle and set that to whatever time you want. connect to the light to the timer and connect a button to the 'or' logic gate the just power the logic gate.
connect them in the order i mentioned them.


This sounded simple enough - alas, this does not work :(
Ydyp May 12, 2020 @ 8:44am 
Originally posted by ainsleys_nan:
imagine a triangle with one point at the bottom and two at the top. put a logic gate at the bottom and set it to 'or', to the top left put another logic gate set to 'and' and the add the timer to the top left of that triangle and set that to whatever time you want. connect to the light to the timer and connect a button to the 'or' logic gate the just power the logic gate.
connect them in the order i mentioned them.
You forgot to mention that he has to connect the light to the and gate ;)
ainsleys_nan May 12, 2020 @ 8:44am 
Originally posted by KrazieFox:
Originally posted by ainsleys_nan:
imagine a triangle with one point at the bottom and two at the top. put a logic gate at the bottom and set it to 'or', to the top left put another logic gate set to 'and' and the add the timer to the top left of that triangle and set that to whatever time you want. connect to the light to the timer and connect a button to the 'or' logic gate the just power the logic gate.
connect them in the order i mentioned them.


This sounded simple enough - alas, this does not work :(
id be up to show you if you wanna invite me
KrazieFox May 12, 2020 @ 9:36am 
Originally posted by Ydyp:
You forgot to mention that he has to connect the light to the and gate ;)

It's She and with your suggestion of connecting the light to the 'AND' gate still nothing worked - UNTIL I changed the 'OR' to 'XOR' - now it flashes - YAY!! Thanks guys ...

Now ... how can I get this working with several lights? Or is this setup 'Per Light'?

I took some screenshots & uploaded them - just need to figure how to link them here

https://steamcommunity.com/sharedfiles/filedetails/?id=2094164358
Last edited by KrazieFox; May 12, 2020 @ 9:43am
Ydyp May 12, 2020 @ 9:41am 
If you want the lights to blink the same you can just connect them all to the same circuit. If you want to have them inverse blink meaning one on and the other off, you need a nor gate in between one light and the circuit.

And if you want them all on a different blinking speed you will need a circuit for each other blinking speed.
Last edited by Ydyp; May 12, 2020 @ 9:41am
KrazieFox May 12, 2020 @ 9:49am 
Originally posted by Ydyp:
If you want the lights to blink the same you can just connect them all to the same circuit. If you want to have them inverse blink meaning one on and the other off, you need a nor gate in between one light and the circuit.

I did not dare mess with it, it works, so I have connected all the bulbs up - this is great - I did not know I could make so many connections :D

Thank you guys :D


https://steamcommunity.com/sharedfiles/filedetails/?id=2094179446
Last edited by KrazieFox; May 12, 2020 @ 9:50am
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: May 12, 2020 @ 7:44am
Posts: 13