Timer help! (Convert a tick to an long lasting signal)
ElementalGenius98 - Custom level - Jun 21, 2014 from AndroidHey guys! I am about to build an full independent war bot :)
All I need to finish is the hammer wiring @_@
My goal is:
A hammer wich swings about every 10 seconds if the proximity sensor detects something in front of it.
Ive got 2 ideas to manage it:
A normal wiring circuit depends on the principa basic parts.
The timer schould activate a switch alway to "on" (that is the cooldown time of the attack) and when the switch is on, and the proximity sensor is on too, both signals schould activate an "and gate". Now the problem is: it is only a tick :o i want that tick to last this long, until the hammer reaches is final Destination :o
Way 2:
"Lua"
In this lua object should be an integrated timer, wich sets an "on" signal to out1. This signal schould last until it gets an "on" signal to in1. After that it needs 10 secs to load again. Both signals, the "lua timer switch" and the proximity sensors signal schould be leaded to an "and gate". Now only thing we have to do is to last this tick, until the attack is finished as in the example above
All in all:
-10 seconds: hammer is "ready"
-proximity sensor detects something
-both signals together activate an "and gate"
-the gates signal must be active until attack is finished
-after that: hammer goes back and 10 seconds cooldown until the hammer can swing again.
Sry for all those complex trys to explain it :$
I hope someone can help me out :$
Downloads: 60 - Level ID: 7729