entity system error
Posted: Sun Nov 03, 2013 7:45 pm
hello everyone I am trying to do a shooter so I had to do entities but for some reason, even though i did pretty much exactly as the tutorial wich is: http://www.youtube.com/watch?v=E1MGLTdafu0 and the part 8 but it still tells me this:
Error
entities/box.lua:2: attempt to index global 'ents' (a nil value)
Traceback
entities/box.lua:2: in main chunk
[C]:in function 'require'
game.lua:1: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
thats it and here is the .love
Error
entities/box.lua:2: attempt to index global 'ents' (a nil value)
Traceback
entities/box.lua:2: in main chunk
[C]:in function 'require'
game.lua:1: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
thats it and here is the .love