Hi, I’m stock with trying to access the next row in an already created lua table or array.
for m = 1, 8 do
local str = " "
for n = 1, 7 do
if thing[m][n].touchable == 0 then
thing[m+1][n].touchable = 0 --[[Here is where i get error, attempt to index field, a nil value. But i have already created the array which is an array of 8 by 7 rect object, with a touchable property.]]–
end
str = str…thing[m][n].touchable…" "
end
print( str )
end
How can i access the next row? Please i need help, thanks.