+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Tutorial on a great timer

  1. #1
    Wire Sofaking singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garšabęr, Iceland
    Posts
    498

    Default

    This tutorial is about a basic countdown timer where it has an un-toggled button and it auto Resets plus an extra noob security since i cant add the diagram or picture ill just use words please someone reply and tell me how to add them



    1. Make a Subtract gate (Arithmetic) and a Constant value you decide i like having 5 minutes (300).

    2. Make a Timer now and the expression it's below.

    3. Finally a Button for the start and the Input for the Minge security (Input as to be toggled 1 on 0 off and the button untoggled 1 on 0 off.

    4. Wire the subtract A to the Constant value and B to the Timer.

    5. Wire Timer Run of the Timer to the Start of the expression and Reset of the Timer to the Reset of the Expression

    6. The Button of the Expression to your Button and the Input of the Expression to your Input

    Happy day your done so also if you change the value you want it to countdown then you also need to change the Expression's line 1 and line 2 to match that value so it works properly
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
    N@CountDownTimer
    I@Button Input
    O@Start Reset Timer Seconds Minutes
    interval(1000)
    Button == 1 -> Start = 1;
    Start == 1 -> Timer += 1;
    Start == 0 -> Timer += 0;
    Timer >= 300 -> Timer = 0, Start = 0;
    Input == 1 -> Start = 0, Timer= 0;
    Input == 0 -> Start = Start, Timer = Timer;
    Timo = (floor(300 - Timer))
    Seconds = (floor(Timo%60))
    Minutes = (floor(Timo/60))
    </div>

    interval is bad though no timers just this if you press button again it skips 3 secs but still only one expression =)

    ask me if you want to know better how to wire it

  2. #2
    Wire Sofaking singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garšabęr, Iceland
    Posts
    498

    Default

    Ok no one is even writing on this lolz
    Ok please anyone say something

  3. #3
    Wirererer Kyzer's Avatar
    Join Date
    May 2007
    Location
    France
    Posts
    388

    Default

    Everyone can do that...

  4. #4
    Wirererer Core Xii's Avatar
    Join Date
    May 2007
    Location
    Finland
    Posts
    393

    Default

    Yes it&#39;s rather noob. Also, you don&#39;t need no timers, or any other gates for that matter - You can do all this in a single expression gate.
    Grammar is the difference between "helping your uncle, Jack, off his horse" and "helping your uncle jack off his horse".

  5. #5
    Wire Sofaking singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garšabęr, Iceland
    Posts
    498

    Default

    I know but if your a noob in the game its better to start of somewhere (im not a noob) like when i started i though gates where supposed to be able to have values (yes lolz) i reinstalled it and then watched orbs

    im just not into the Interval i like timers unless im making something i need it for

  6. #6
    Wire Noob V12US's Avatar
    Join Date
    Sep 2007
    Posts
    17

    Default

    Yes it&#39;s rather noob. Also, you don&#39;t need no timers, or any other gates for that matter - You can do all this in a single expression gate.[/b]
    Mind posting that Expression Gate? I&#39;m still kind of inexperienced and such a gate would be really usefull to me.

  7. #7
    Wire Sofaking singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garšabęr, Iceland
    Posts
    498

    Default

    i did its on bottom not in codebox though let me fix that

  8. #8
    Wire Noob V12US's Avatar
    Join Date
    Sep 2007
    Posts
    17

    Default

    I meant everything in a single expression gate.

  9. #9
    Wire Sofaking singilli's Avatar
    Join Date
    Jun 2007
    Location
    Garšabęr, Iceland
    Posts
    498

    Default

    Sure give me 5 mins

  10. #10
    Wire Amateur kuro11's Avatar
    Join Date
    Apr 2007
    Posts
    76

    Default

    Sure give me 5 mins[/b]
    I would also like to see the expression gate version of this.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. THE GREAT BOX PROJECT (Giant Gmod Box Maze!!!)
    By BlackholeWM in forum Off-Topic
    Replies: 24
    Last Post: 03-18-2009, 07:19 AM
  2. Great Idea for next release
    By Jarviar in forum Ideas & Suggestions
    Replies: 3
    Last Post: 07-06-2008, 10:53 PM
  3. Putting a video tutorial in the gmod tutorial list
    By Def the world in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 08-21-2007, 10:04 PM
  4. Up/Down Timer
    By ninja_danz0r in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 06-23-2007, 06:19 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots