Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

add and gate, L.G.+L.G.+ scrap, have target and sourse, can be negated, and may by can change modes before plasing (and, or, mb xor)

Nand, or, xor examples, and i know that it in higer res. but this is just example

It is possible to make logic gates using logic gates. Here is an example of a nand gate, where c = a nand b. 

I do get that a specialized logic gate object would be useful tho, and I probably should have added it.

so gate can't see items under gate doors?, or it's something else?

Yes, so the gates react to gates as well as items, so the orange gate sees that the red/blue gates are closed and reacts to that (and stays open because it's inverted), and then when red and blue are open, the orange gate no longer sees them and instead sees the item underneath (which it reacts to by closing since items always give a true signal and the gate is inverted).

Wait, you can place logic gates over top of each other? I thought the collision didn't allow it.

(1 edit) (+1)

The yellow part of the logic gate doesn't have collision detection when placing the gate, so you can place it over anything. Open logic gates also don't have collision where the yellow part would have been, so you can place things overlapping that.