I am always working with files organized in folders.
For example: I have an “utils” folder with “functions.lua” file which contains useful functions for my project.
Also, there is “levels” folder with “level1.lua” file.
And then:
-
If I require “utils/functions.lua” file in “levels/level1.lua” file like this:
require(“utils.functions”)
,Glider reports an error. -
If I place “functions.lua” file in to the same folder as “level1.lua” file and call it with:
require(“functions”)
, Glider doesn’t report an error.
Corona project works fine in both cases.
Why Glider shows an error in the first case?
Regards [import]uid: 101952 topic_id: 31348 reply_id: 331348[/import]