Page 2 of 2

Re: Animations in Love.

Posted: Tue Aug 21, 2012 12:58 am
by Roland_Yonaba
I guess it is because of this:

Code: Select all

require(anal)
This function is supposed to load and run some code from a file.What you pass to require is a string, correponding to the path where this file is located. In your code, Lua considers that anal is a variable, and not a string. It would have worked if you did have previously assign a string value to this variable.

So, if the file you want to call is named "anal.lua", and located at the root of your base folder, just to it this way:

Code: Select all

require("anal")
The ".lua" is not needed, as require adds it automatically.
See require