JereTheJuggler
Spazmatism
Let's get right into the build, shall we? Here's a gif I made of it in action
http://i.imgur.com/M2cqWCk.gifv
and for easy reference sake,
The way it works is that the 3 second timer (which could be swapped out for 5 seconds) controls the whole operation, and you can have some other mechanism turning this on/off by connecting it to the blue wire that leads off-screen.
The timer is directly connected to the top dart trap, which fires and hits 2 pressure plates that activate and deactivate the top lamps of both AND gates as well as firing the middle and bottom dart traps.
The AND gates are what make the gun rotate, and whichever one has it's bottom lamp turned on is the one that rotates it. Because of the way the gates fire when activated and deactivated the portal gun actually rotates twice per cycle of the machine.
The middle dart trap is what decides what direction the gun should rotate in. The first pressure plate in front of the dart simply actuates the block past it, so the dart only goes through it every other time it's fired. The second pressure plate in front of the dart is what toggles which AND gate has its bottom lamp on.
The bottom dart trap merely serves as a delay to make sure the gun rotates first and then shoots, as the pressure plate in front of it simply makes the gun fire.
http://i.imgur.com/M2cqWCk.gifv
and for easy reference sake,
The way it works is that the 3 second timer (which could be swapped out for 5 seconds) controls the whole operation, and you can have some other mechanism turning this on/off by connecting it to the blue wire that leads off-screen.
The timer is directly connected to the top dart trap, which fires and hits 2 pressure plates that activate and deactivate the top lamps of both AND gates as well as firing the middle and bottom dart traps.
The AND gates are what make the gun rotate, and whichever one has it's bottom lamp turned on is the one that rotates it. Because of the way the gates fire when activated and deactivated the portal gun actually rotates twice per cycle of the machine.
The middle dart trap is what decides what direction the gun should rotate in. The first pressure plate in front of the dart simply actuates the block past it, so the dart only goes through it every other time it's fired. The second pressure plate in front of the dart is what toggles which AND gate has its bottom lamp on.
The bottom dart trap merely serves as a delay to make sure the gun rotates first and then shoots, as the pressure plate in front of it simply makes the gun fire.