TV Effect

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Senseo
Prole
Posts: 3
Joined: Fri May 24, 2019 5:25 am

TV Effect

Post by Senseo »

Hello,
Well I've to tell you I'm into Löve since 4:00 this morning (now it's almost 8:00 time for breakfast :D ) so please have patience with me.
I'll have a question where it's not clear to me how this could be archived

For an Intro (first screen) my idea was to have in the middle of the screen a logo then a short animation above the logo (max a second long) and after the animation had finished display the second logo and hide the animation.

the animation I would love to create

https://www.youtube.com/watch?v=fA7GZsJGYBg

Does anyone have an idea how this can be recreated and displayed above my logo?
The logo (while I was unsure what to use here is created with quads)

Code: Select all

    imgLogo = love.graphics.newImage('logo.png')
    spritePosX   =    0
    spritePosY   =    0
    spriteWidth  =  790
    spriteHeight =  216
    quadLogo = love.graphics.newQuad(spritePosX, spritePosY, spriteWidth, spriteHeight, imgLogo:getDimensions()
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: TV Effect

Post by raidho36 »

Basically, it's a three frame animation. First frame is your first logo, second "frame" is the video of the TV static, third frame is the second logo.

You could use an animation manager. Or for something this simple, indeed just hard-code it to display these three assets in succession.
Senseo
Prole
Posts: 3
Joined: Fri May 24, 2019 5:25 am

Re: TV Effect

Post by Senseo »

Ok got it. The only problem is how to do that TV effect any ideas?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: TV Effect

Post by raidho36 »

You can just use a pre-recorded video and play it in the game window. Or in fact, make the entire logo animation a video and play that.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: TV Effect

Post by grump »

Example attached
Attachments
static.love
(541 Bytes) Downloaded 224 times
Senseo
Prole
Posts: 3
Joined: Fri May 24, 2019 5:25 am

Re: TV Effect

Post by Senseo »

grump wrote: Sat May 25, 2019 10:55 pm Example attached
Wow, that looks really cool thank you very much!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests