Search found 2 matches

by l19htn1n9
Sun Oct 20, 2013 12:41 pm
Forum: Support and Development
Topic: cannot use object from a other lua file
Replies: 3
Views: 2867

Re: cannot use object from a other lua file

Thank you, it worked great, only now i get the error that i can't reference the self var. .\ScreenManager.lua:12 : attempt to index global 'self' (a nil value) ScreenManager: local ScreenManager = {} ScreenManager.__index = ScreenManager function ScreenManager.new() local self = setmetatable({}, Scr...
by l19htn1n9
Sun Oct 20, 2013 11:12 am
Forum: Support and Development
Topic: cannot use object from a other lua file
Replies: 3
Views: 2867

cannot use object from a other lua file

I am trying to write a game, with a custom screen manager, I just started to make it. But i ran into a problem. My ScreenManager table / class is not recognized. It gives me the error Main.lua:5: attempt to index global 'ScreenManager' (a nil value) This are my lua files, i am using love2d 0.8.0: Ma...