Posted 09 May 2018 - 05:08 PM
I have made a program which will display different short "animated" messages, currently "Creative Age" for testing.
But it seems like it could be a lot more simplified than to write it for every frame.
It basically adds another letter each 0.2 seconds and keeps it on screen for 3 seconds, then take the letter off one by one every 0.2 seconds.
Here's my code: https://pastebin.com/jAsBzCkg
How do I delete or move my post?
But it seems like it could be a lot more simplified than to write it for every frame.
It basically adds another letter each 0.2 seconds and keeps it on screen for 3 seconds, then take the letter off one by one every 0.2 seconds.
Here's my code: https://pastebin.com/jAsBzCkg
Spoiler
local p = peripheral.wrap("right")
p.clear()
function pack(...)
return {...}
end
FORMAT_CHAR = "\194\167"
FORMAT_BOLD = FORMAT_CHAR .. 'l'
local labelPlayers = p.addText(3, 3, "C");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Cr");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Cre");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Crea");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creat");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creati");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creativ");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creative");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creative A");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creative Ag");
sleep(0.2)
local labelPlayers = p.addText(3, 3, "Creative Age");
sleep(3)
p.clear()
local labelPlayers = p.addText(3, 3, "Creative Ag");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Creative A");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Creative");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Creativ");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Creati");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Creat");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Crea");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Cre");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "Cr");
sleep(0.2)
p.clear()
local labelPlayers = p.addText(3, 3, "C");
sleep(0.2)
p.clear()
sleep(0.2)
os.reboot()
How do I delete or move my post?