In-game timer

  • S117
    30th May 2016 Member 0 Permalink

    First of all, I apologize if this is the wrong place to post this.

    Would it be very difficult to make a timer with start/stop/reset functions that could be tied into an autorun file?

    Including a free moving window.

    If it is too hard, then no big deal, however if someone is willing to drop a source code to the finished product i would be very appreciative. (with instructions on how to tie it into an autorun file, if it isnt too hard.)

    :D

  • LBPHacker
    30th May 2016 Developer 0 Permalink

    What sort of timer do you mean? A stopwatch, maybe? What do you mean by being able to tie it into autorun?

     

    EDIT: Oh, do you mean a timer that actually does something?

    Edited once by LBPHacker. Last: 30th May 2016
  • jacob1
    30th May 2016 Developer 0 Permalink
    Is this about lua scripting? In that case, you could just do the timer using lua. You can use os.time() or socket.gettime() to get the current time, and check that in a tick function until your "timer" is hit.
  • S117
    30th May 2016 Member 0 Permalink

    Im talking about a built in timer, like a new button that brings up a timer, it would be pretty usefull to me right now because i am experimenting with sprk delays and electronic stuff and i dont really have a convenient way to help me get my timing just right.

     

    EDIT: Yes, pretty much a stopwatch. I would do it, i just have no idea how, lol.

    Edited once by S117. Last: 30th May 2016
  • Sandwichlizard
    30th May 2016 Member 0 Permalink

    there are powder counters if your looking to count sparks or something like that.  also when making fine timing adjustments you need to save and reload from the thumbnail view to reset pixel order.  or use some lua command I guess.  it will have an impact on timing.  if you have a complex circuit with a lot of close timing, if you do not reset particle order frequently, it will mess up your efforts.

  • S117
    30th May 2016 Member 0 Permalink

    im just making small stuff to be used in larger stuff by other ppl, and its a pain to get just right, lol

  • Sandwichlizard
    31st May 2016 Member 0 Permalink

    I have this save that helped me build alot of stuff.  

     

  • S117
    31st May 2016 Member 0 Permalink

    I found a thread by feynman (i think thats the right spelling) but it measures FPS, and i was wondering if it was possible to convert it to seconds instead of fps.

     

    here is his thread.

    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=17253