| Blockland Forums > Modification Help |
| How do I make a while loop pause |
| (1/2) > >> |
| Lando The Climber:
I need a while loop to wait 1 second between each time it runs, I tried --- Code: ---wait(1); --- End code --- but that didn't work, Anyone? |
| otto-san:
your best bet is just schedules that adds one second onto the time each iteration i think edit: ie --- Code: ---for(%i = 1; (statement); %i++) { //do stuff maybe schedule(1000 * %i, 0, thingy); } function thingy() { //stuff you wanted to do } --- End code --- |
| Nexus:
Torque doesn't like to hang. If it does, it will not let anything else run during that time, and that is a generally bad thing. I hope I am using the term "hang" correctly. |
| Axolotl:
--- Quote from: Nexus on December 31, 2011, 04:28:30 PM ---Torque doesn't like to hang. If it does, it will not let anything else run during that time, and that is a generally bad thing. I hope I am using the term "hang" correctly. --- End quote --- The proper term is deadlock. |
| Destiny/Zack0Wack0:
--- Quote from: Axolotl on December 31, 2011, 09:36:08 PM ---The proper term is deadlock. --- End quote --- no |
| Navigation |
| Message Index |
| Next page |