How do I use a Calculator with an actively running Timer?
I have an active timer running and want to extract the time in that window when a button is pressed, then process that number through a calculator. I don't have trouble with getting the time with a button press. The problem is that when I add the calculator into the logic flow, the resulting numbers are incorrect.
Expected: 10 second timer, hit button at 4 seconds in, calculator multiplies that by -1, result is -4
-
...And what *result* do you get?
-
Make sure the blend type on the calculator's input wires is correct. Tweak the calculator, hover over the input wire, and hold L1. If the icon on the input is an "X" it's probably not what you want. It should display a description of the wire blend mode while you hold L1, and L1+X cycles through the blend modes.
-
'@Phort The blend mode was set to the default of Overwrite. Changing the mode doesn't fix things.
-
As Supposer said, we need more detail about what result you're getting, and more detail about your wiring configuration might help as well.
-
So I just tried this and it worked as expected. Are you wiring the current time output on the timer?
Also bear in mind that if something is unpowered it will always send a signal of 0, so you can’t just unpower the timer to stop the time. What I did instead was wire a full counter into the play input on the timer and set that to he speed setting. Then I wired the controller sensor into the minus input on the counter so that the timer pauses when I press x. Then it worked as you wanted it to.
Hope this helps :) Peter
댓글을 남기려면 로그인하세요.