Posted 07 January 2017 - 07:09 AM
Alright so I made two program that I would like to run one after the other and loop it, therefore I made a program called "start"
start program is :
The mdk program is :
big program is irrelevant since it doesn't include a loop in it.
Now basically when I call "start" the program keeps the loop of "mdk" (therefore you never see "big") I am trying to find how to make "mdk" loop once and make "start" play "mdk" then "big" and loop both program one after the other.
Thank you so much guys its been a brain tease xD
start program is :
shell.run("mdk")
shell.run("big")
The mdk program is :
local pos = 18
mon = peripheral.wrap("right")
mon.clear()
mon.setBackgroundColor(16384)
mon.setTextColor(32768)
while true do
if pos==-26 then
pos = 18
end
mon.clear()
mon.setCursorPos(pos,1)
mon.setTextScale(5)
mon.write("text")
pos = pos-1
os.sleep(0.15)
end
big program is irrelevant since it doesn't include a loop in it.
Now basically when I call "start" the program keeps the loop of "mdk" (therefore you never see "big") I am trying to find how to make "mdk" loop once and make "start" play "mdk" then "big" and loop both program one after the other.
Thank you so much guys its been a brain tease xD