This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Dillinger's profile picture

Need help scrolling monitor *With Code*

Started by Dillinger, 21 September 2012 - 01:26 AM
Dillinger #1
Posted 21 September 2012 - 03:26 AM
Alright, so i've been working at this, and so for, I have not prevailed, I I've deciced to come here.


Here is the coding area I am having problems with:


mon.setCursorPos(1,9)
mon.write("If you want to purchase…")
mon.scroll = 2
mon.setCursorPos(1,-2)
mon.write("Calculate the EMC value…")

Then when I save; the monitor does not scroll, I cannot seem to get the code down correctly; Thanks in advance.
MysticT #2
Posted 21 September 2012 - 03:29 AM
scroll is a function, so you have to call it, not assign it a new value:

mon.scroll(2) -- scroll the monitor 2 lines
Dillinger #3
Posted 21 September 2012 - 03:35 AM
Im guessing I would have to make a loop to make the monitor scroll up and down every few ticks?

E: It seems the text that is supposed to go on -2 (i've also tried 12) doesn't show up.
Zoinky #4
Posted 21 September 2012 - 05:16 AM
You can't scroll up. You'll need to re-print it with the correct lines. As far as I'm aware.