Advertisement
CompCrafter

Laufschrift - running text - Computercraft

Oct 2nd, 2015 (edited)
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | Source Code | 0 0
  1. local pos = 18
  2.  
  3. mon = peripheral.wrap("MONITOR SIDE (Top, Bottom, Left, Right")
  4. mon.clear()
  5. mon.setBackgroundColor(32) --Background Color
  6. mon.setTextColor(32768) --*Same here
  7. mon.setTextScale(5) -- Text Size
  8.  
  9. while true do
  10.  
  11.   if pos==-26 then
  12.      pos = 18
  13.        end
  14.        
  15.        mon.clear()
  16.        mon.setCursorPos(pos,1)
  17.        mon.write("DEIN TEXT HIER")
  18.        pos = pos-1
  19.        
  20.        
  21.        os.sleep(1) --1 oder 0.5 Ticks oder weniger
  22.        
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement