Embed SWF file into Love2D game

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
love2dluacode
Prole
Posts: 7
Joined: Sun Mar 20, 2022 11:04 am

Embed SWF file into Love2D game

Post by love2dluacode »

i've been trying to make an flash game into Love2D. Is there any way to do this??
MrFariator
Party member
Posts: 578
Joined: Wed Oct 05, 2016 11:53 am

Re: Embed SWF file into Love2D game

Post by MrFariator »

Not really, no. At least not in any capacity that it would be worth the effort. You'd have to somehow embed flash player to play inside the LÖVE window, which would require non-trivial amount of work on the LÖVE source code. You could write a parser to interpret the data inside the SWF, but even that would be more effort than it would be worth.

If you just want to embed an animation made in Flash, you'd be better off converting the SWF into a video file, and play it back with love.graphics.newVideo. Or if it's character animation using tweens, then implement some skeletal animation system in your LÖVE game, if not just export things out as spritesheets.
love2dluacode
Prole
Posts: 7
Joined: Sun Mar 20, 2022 11:04 am

Re: Embed SWF file into Love2D game

Post by love2dluacode »

MrFariator wrote: Tue Mar 29, 2022 3:56 pm Not really, no. At least not in any capacity that it would be worth the effort. You'd have to somehow embed flash player to play inside the LÖVE window, which would require non-trivial amount of work on the LÖVE source code. You could write a parser to interpret the data inside the SWF, but even that would be more effort than it would be worth.

If you just want to embed an animation made in Flash, you'd be better off converting the SWF into a video file, and play it back with love.graphics.newVideo. Or if it's character animation using tweens, then implement some skeletal animation system in your LÖVE game, if not just export things out as spritesheets.
oh well ok
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests