How do I use the love.video element

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
satorikeiko
Prole
Posts: 2
Joined: Wed Jun 30, 2021 7:34 pm

How do I use the love.video element

Post 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
User avatar
Xii
Party member
Posts: 137
Joined: Thu Aug 13, 2020 9:09 pm
Contact:

Re: How do I use the love.video element

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests