Re: Animations in Love.
Posted: Tue Aug 21, 2012 12:58 am
I guess it is because of this:
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:
The ".lua" is not needed, as require adds it automatically.
See require
Code: Select all
require(anal)
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")
See require