Embed SWF file into Love2D game
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 7
- Joined: Sun Mar 20, 2022 11:04 am
Embed SWF file into Love2D game
i've been trying to make an flash game into Love2D. Is there any way to do this??
-
- Party member
- Posts: 578
- Joined: Wed Oct 05, 2016 11:53 am
Re: Embed SWF file into Love2D game
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.
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.
-
- Prole
- Posts: 7
- Joined: Sun Mar 20, 2022 11:04 am
Re: Embed SWF file into Love2D game
oh well okMrFariator 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.
Who is online
Users browsing this forum: No registered users and 12 guests