Animations in Love.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)

Re: Animations in Love.

Post by Roland_Yonaba » Tue Aug 21, 2012 12:58 am

I guess it is because of this:

Code: Select all

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

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Gunroar:Cannon(), MrFariator and 32 guests