+ Reply to Thread
Results 1 to 5 of 5

Thread: countdown

  1. #1
    Wirererer woo482 is an unknown quantity at this point woo482's Avatar
    Join Date
    Jul 2008
    Posts
    269

    Default countdown

    i am useing a delay chip to set a rocket off but it counts up I want it to count down how do I do that ? I have tried useing a negate chip but that just puts - on the begining

  2. #2
    ebs
    ebs is offline
    Wire Amateur ebs is on a distinguished road ebs's Avatar
    Join Date
    Apr 2007
    Location
    Denmark
    Posts
    55

    Default Re: countdown

    You can do like this... :

    Code:
    100-delay
    
    personally, i would have used a timer and do, 100-timer (or any other value, depending on how long you want it to wait.), then hook that to a "less then or equal" with nothing in its B-input.

  3. #3
    Wirererer woo482 is an unknown quantity at this point woo482's Avatar
    Join Date
    Jul 2008
    Posts
    269

    Default Re: countdown

    ok I will try a timer now

  4. #4
    ebs
    ebs is offline
    Wire Amateur ebs is on a distinguished road ebs's Avatar
    Join Date
    Apr 2007
    Location
    Denmark
    Posts
    55

    Default Re: countdown

    You could also use a expression.....
    Code:
    N@Rocket-thingy
    I@Go Seconds
    O@Fire Countdown
    Go & !On -> On=1, Countdown=Seconds;
    On -> Timer+=1,interval(1000);
    Timer >= Seconds -> Fire=1;
    Timer >= Seconds+1 -> Fire=0, On=0;
    Countdown = (Timer < Seconds&On)?(Seconds-Timer):0
    
    Untested, tho. But you get the idea, i hope.

  5. #5
    Wire Sofaking ahref is an unknown quantity at this point ahref's Avatar
    Join Date
    Jul 2008
    Posts
    528

    Default Re: countdown

    timer and a subtract gate.

    total time - timer = time left before boom.

    should work with most time gates

    eg if its 60 seconds then 60 - timer :P

+ Reply to Thread

Similar Threads

  1. A countdown
    By Lieutent Slappy Moose in forum Help & Support
    Replies: 8
    Last Post: 07-30-2008, 12:23 AM
  2. Timed Countdown Detonator (Circuit Diagram)
    By evileliminator in forum Wiremod Tutorials
    Replies: 9
    Last Post: 07-12-2007, 02:27 AM
  3. Countdown Timer and Activator
    By teriaki in forum Wiremod General Chat
    Replies: 3
    Last Post: 05-28-2007, 07:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts