Page 1 of 1

How do I use the love.video element

Posted: Wed Jun 30, 2021 7:40 pm
by satorikeiko
I have read the love.video wiki but it just doesn't make sense.
if someone who knows how to use it can explain it to me I would be grateful thx :)

Code: Select all

function love.load()
    Video = love.graphics.newVideo("nice-anim.ogv")
end

function love.update(dt)
    Video:play(true)
end

function love.draw()

end
here's my code

Re: How do I use the love.video element

Posted: Thu Jul 01, 2021 2:06 pm
by Xii
You have to actually draw the video. :play() makes it go forward in time, but you have to love.graphics.draw(Video) to see anything.