Timeline Idea

  • ZER02541714
    15th Nov 2011 Member 0 Permalink
    I think that there should be a timeline in powdertoy for Kia scripting. This would allow you to have a code keep recurring the whole time. So if you want the pressure to stay at 256 then it will stay at that indefinitely.
  • Atrayin
    15th Nov 2011 Member 0 Permalink
    hm... there is already a script for the pressure thing...
    And, figuring you're new here, you posted in the wrong thread...
  • MasterMind555
    15th Nov 2011 Member 0 Permalink
    @ZER02541714 (View Post)
    It's Lua scripting, and you just have to do
    tpt.register_step(myFunction);
  • ZER02541714
    15th Nov 2011 Member 0 Permalink
    No that was just an example what if you want a lot of codes to happen at different controlled times I am not new. This would make you be able to enable modes like water equilization test when you want the ocean to overflow. It would bring the next level to animation.
  • cctvdude99
    15th Nov 2011 Member 0 Permalink
    @ZER02541714 (View Post)
    You could register_step a timer = timer-1, so every frame timer's value drops. Then use if timer == statements to control when things happen. :)
  • ZER02541714
    15th Nov 2011 Member 0 Permalink
    Learning lua is not easy. Some people can not understand it a timeline system embedded into e system would make it easier for beginners in lua.
  • cctvdude99
    15th Nov 2011 Member 0 Permalink
    @ZER02541714 (View Post)
    If they can't understand it, why would they be making a script?
    Your logic is severly flawed.
  • ZER02541714
    15th Nov 2011 Member 0 Permalink
    There is no problem with my logic you do not understand it. I said what if someone was a begginer like me at lua. They can not make long 20 line codes to do a timeline concept.they can do simple one line codes. Put that in a timeline mode and there you go. Easy new developing that gives the little guys the chance to beat the big guys.
  • MasterMind555
    15th Nov 2011 Member 0 Permalink
    @ZER02541714 (View Post)
    Look, this isn't Flash, this is Powder Toy, an Powder Simulator. Lua wasn't meant to be easy, but to be useful. What you suggest is highly unuseful and alot of work for the devs. Why would you potentially want a script to happen after a certain time? You normally want it on a key press, or when an event occurs, not after X amount of time....
  • cctvdude99
    15th Nov 2011 Member 0 Permalink
    @MasterMind555 (View Post)
    And if you do, for some reason, want it after x amount of time, you can make it happen after x amount of frames with my idea.