Unable to display text and images at the same time
Posted: Mon Dec 31, 2018 8:25 am
When I enter this script into my game, it shows the image but it doesn't show the text. Does anyone know how to fix this issue?
Script:
function love.load()
potato = love.graphics.newImage("potato.png")
end
function love.draw()
love.graphics.draw(potato, 250, 250)
end
function love.draw()
love.graphics.print("Here's potato!")
end
Script:
function love.load()
potato = love.graphics.newImage("potato.png")
end
function love.draw()
love.graphics.draw(potato, 250, 250)
end
function love.draw()
love.graphics.print("Here's potato!")
end