General discussion about LÖVE, Lua, game development, puns, and unicorns.
-
satorikeiko
- Prole
- Posts: 2
- Joined: Wed Jun 30, 2021 7:34 pm
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
-
Xii
- Party member
- Posts: 137
- Joined: Thu Aug 13, 2020 9:09 pm
-
Contact:
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.
Users browsing this forum: Google [Bot] and 4 guests