This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Saxguy99's profile picture

I Need Help With A Loading Program

Started by Saxguy99, 27 August 2013 - 06:16 AM
Saxguy99 #1
Posted 27 August 2013 - 08:16 AM
Hi i was wandering if any one could tell me how to make a progress bat / loading bar. I was going to make a installation page for my computercraft os but i cant think of any way to do that. If anyone can plzz leave a replay. Thanks for reading BYE
Bubba #2
Posted 27 August 2013 - 10:29 AM
Use a for loop + a timer and increment across the screen. For example:

term.setBackgroundColor(colors.green)
for x=5, 15 do
  term.setCursorPos(x,5)
  term.write(' ')
  sleep(0.5)
end

Of course you would want to center it on the screen, but you get the jist.
Saxguy99 #3
Posted 27 August 2013 - 10:58 AM
ok thanks