Getting text input from the user.
Posted: Tue Oct 20, 2015 2:05 am
I've read that using io.read() will get input in lua itself, but does love have it's own type of use or format for it?
I'm trying to execute it inside of an if statement, but I'm sure it's not activating. (Or I'm doing it wrong
)
EDIT: I should maybe specify that the input is for the user to type their name out, or a sentence and save it to a string, eheh..
I'm trying to execute it inside of an if statement, but I'm sure it's not activating. (Or I'm doing it wrong

Code: Select all
if path == 0 then
love.graphics.print("Omitted",0,0)
pName = io.read()
end