valithor, on 26 November 2014 - 02:00 AM, said:
ShadowDisruptor, on 26 November 2014 - 01:46 AM, said:
How tall is the monitor you are using (how many blocks)
where you are actually writing stuff to the monitor for the y coord you use x+i for the y coord. Your problem might be that you are writing off the screen.
edit: awsumben13 beat me to it.
'd
Monitor is already big enough, ruled that out early. Thanks for the reply
KingofGamesYami, on 26 November 2014 - 01:53 AM, said:
Well, first thing I noticed is you both loops using the 'i' variable. Are you referencing different ones in your mon.setCursorPos?
Got that one already too, it's fixed in my in-game code but not on the source. Thanks for the answer!
awsumben13, on 26 November 2014 - 01:58 AM, said:
Only the variable i from the second for loop (for i=0,width do) will be used in the next section of code. I'm guessing you want to refer to the first "i" for the y position, and the second "i" for the x position, so this isn't working because it is only referring to the second "i".
On a side note, having 2 loops is unnecessary. You can use string.rep() to create a line of spaces, and draw that, rather than drawing each space individually.
Edit: it's mon.setCursorPos( x, y ), not mon.setCursorPos( y, x ) which it looks like you are trying to use.
Fixed the x and y. Thanks for the answer!
Edited by ShadowDisruptor, 26 November 2014 - 02:44 AM.