Attempt to index global 'ents' (a boolean value)
Posted: Fri Jan 16, 2015 5:10 am
I'm making a game from Goature's tutorials, and I've had a few problems with the entities system.
It claims, among other things, that ents.Startup() in line 3 is attempting to index global 'ents', which it says is a boolean value. The code is below.
function love.load()
ents = require ("entities")
ents.Startup()
love.graphics.setBackgroundColor( 225, 225, 30 )
xCloud = 0
imageCloud = love.graphics.newImage( "textures/cloud.png" )
imageGround = love.graphics.newImage( "textures/ground.png" )
imageAfif = love.graphics.newImage( "textures/afif.png" )
imagePlayer = love.graphics.newImage( "textures/player.png" )
ents.create( "afif", 128, 128 )
end
Thanks.
It claims, among other things, that ents.Startup() in line 3 is attempting to index global 'ents', which it says is a boolean value. The code is below.
function love.load()
ents = require ("entities")
ents.Startup()
love.graphics.setBackgroundColor( 225, 225, 30 )
xCloud = 0
imageCloud = love.graphics.newImage( "textures/cloud.png" )
imageGround = love.graphics.newImage( "textures/ground.png" )
imageAfif = love.graphics.newImage( "textures/afif.png" )
imagePlayer = love.graphics.newImage( "textures/player.png" )
ents.create( "afif", 128, 128 )
end
Thanks.