Having problems with the newScreenshot() feature
Posted: Sun Oct 13, 2019 3:25 pm
Hey...
I seem to be having problems with the love.graphics.newScreenshot()
When i run my program it says:
attempt to call field 'newScreenshot' (a nil value)
The example
Btw.
This is me following the example in the love2d wiki
Plz help
I seem to be having problems with the love.graphics.newScreenshot()
When i run my program it says:
attempt to call field 'newScreenshot' (a nil value)
The example
Code: Select all
function love.load()
love.filesystem.setIdentity('screenshot_example');
end
function love.keypressed()
local screenshot = love.graphics.newScreenshot();
screenshot:encode('png', os.time() .. '.png');
end
This is me following the example in the love2d wiki
Plz help