More ipairs Confusion
Posted: Fri Aug 05, 2016 5:38 pm
I ran into another development problem that Im having a hard time wrapping my head around.
I was working on a couple functions to create an ingame sign with some text on it.
I have seen a couple of differrent ways to do it, but Im mostly wondering why what I have written doesnt work.
I think the problem is in love.load(), specifically in the ipairs part.(Line 31 - 41)
It seems to not be setting the text to the right values, also won't override previous values.
The first line of text should say "This is line 1 of the Sign," and not "Line 1." ("Line 1" is my placeholder)
Ive had a couple problem with colored text tables, but this has me completely confused.
I've included a .love file for others to audit, your expert opinion is appreciated.
With Löve,
Riley S.
PS: It's probably something obvious, I have problems spotting obvious errors.
I was working on a couple functions to create an ingame sign with some text on it.
I have seen a couple of differrent ways to do it, but Im mostly wondering why what I have written doesnt work.
I think the problem is in love.load(), specifically in the ipairs part.(Line 31 - 41)
It seems to not be setting the text to the right values, also won't override previous values.
The first line of text should say "This is line 1 of the Sign," and not "Line 1." ("Line 1" is my placeholder)
Ive had a couple problem with colored text tables, but this has me completely confused.
I've included a .love file for others to audit, your expert opinion is appreciated.
With Löve,
Riley S.
PS: It's probably something obvious, I have problems spotting obvious errors.