36 posts
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
1190 posts
Location
RHIT
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.
36 posts
Posted 27 August 2013 - 10:58 AM
ok thanks