Hello Everybody.
I know there are posts about this already, and questions, but this is what I have tried so far, using a tutorial:
–Main Lua file
local gfx = require(“gfx”);
gfx.printSomething();
–gfx lua file
local M = {};
function printSomething()
print("Hello World);
end
M.printSomething = printSomething;
That’s my code, but for the life of me, I can not get it to work.
I get an error in the main lua file telling me that I am attempting to call printSomething(), which is a nil value. Did something change in recent versions of Corona, or am I not doing something right?
Thanks in advance.