Posted 03 April 2012 - 12:25 AM
How do I use slow print? Or whatever it is called. It's like print except it does it slowly. Can someone help me out?
speed = 5
string = "A string!"
textutils.slowPrint(string, speed)
function sprint(text)
textutils.slowPrint(text)
end
Type that at the top, when you want a slowprint just type:
sprint "Insert text here!"
Even shorter:You can also shortcut it.Type that at the top, when you want a slowprint just type:function sprint(text) textutils.slowPrint(text) end
sprint "Insert text here!"
local sprint = textutils.slowPrint
sprint("Text Here")
And you can use the time parameter:
sprint("Text", 3)
function slowPrint(text, time)
for i = 1, text:len() do
io.write(text:sub(i, i))
sleep(time)
end
io.write("n")
end
slowPrint("Hello, World!", .5)