
I don't know, I am not studying electronics or anything, and I might have mistakes in my way of thinking.

Now in the second cycle, the NOT gate processes the current B value that is "0", and sends the AND gate the value "1", and the other port of the AND gate connected to the button remains the same since the change there was complete in the first cycle, so we get 0 AND 1 = 0. Garrys Mod is a 2006 sandbox game developed by Facepunch Studios and published by Valve. The NOT gate still sends the old value "0", but that's still a value the AND gate can manipulate, and as long as one of the inputs of an AND gate is "0", the output should be "0" (I think this is the part we couldn't agree with each other). For other uses, see Gmod (disambiguation). Let's say, in the first cycle, AND gets B (or "0") and NOT gets B ("0") at the same time, just like you said.Īt this moment, the port of the AND gate that's connected directly to the button has the value of B that is "0", but the NOT gate is still outputing the old signal B' that was "0" so after the first cycle, the AND gate has a "0" from the button and another "0" from the NOT gate, so 0 AND 0 = 0 is the output after the first cycle (of course if we're delaying all of the gates, the output value of AND would also be delayed but let's assume it's not since we're just using that value to trigger something and not putting it through other gates). While not being sure if that's the way propagation delay works, that's exactly how I thought of it but I'm still coming to the same conclusion. Any ideas on why this might be happening? This second screenshot shows the watermelon spawned by the spawner just after the button is pressed:Īt first I thought it was the gate delay but if that was the case when the button is turned off you would expect B' to switch to "1" a little later than B to switch "0", so it would still output "0". You can't see this using a screen because it happens very quickly so I used a prop spawner. Have you tried grounding the other AND input with a 0 constant I suppose the problem is not that the button does weird. The problem is it should only output the value "0", however, when turning off the button, for a very brief moment, the AND gate outputs "1". So basically what the AND gate should be outputting is " B AND B' ", where B is the value of the button and B' is the inverse of B. The button is connected to an AND gate and a NOT gate which in turn outputs it's value to the AND gate. The player is in a world where objects can be created and destroyed on demand. Players are given tools and are left to entertain themselves. Unlike normal games there aren't any predefined aims or goals. So I have a toggle button, with values "1" for on and "0" for off. Garry's Mod Wiremod Installer/Updater file - Mod DB Garry's Mod reviews Garry’s Mod is a sandbox mod for the Source Engine. I've quickly put together something to demonstrate the issue: Then I figured out where the problem was but I still don't know what's causing it. I've been working on something with gates and stuff and realized something wasn't working right. Okay, here's something that's been driving me crazy.
