I have a pretty weird situation but i will try hard to explain everything the best i can. So im coding a game using PyGame. I used moviepy to show a video on the surface. Now im doing a combatscreen and i want to animate the attacks. Ill show a quick screenshot
When clicked on "Fireball" i want to show a fireball. The video itself has transparency but it fills it up with white.
The code i used previously to show cutscenes for example is following:
video = VideoFileClip('assets/Attacks/Frantz/fireball.webm')
video.preview()
When it plays the video it looks like this:
My initial file was a gif that i converted to an mp4. i found out that mp4 doesn't support alpha/transparency i tried using the gif by replacing video = VideoFileClip('assets/Attacks/Frantz/fireball.mp4')
with video = VideoFileClip('assets/Attacks/Frantz/fireball.gif')
but the same thing happend with the white background (And yes the gif has 100% transparency)
I kinda don't know what to do. Should i try other file formats, if yes how do i remove the transparency but i think i need to change something in the code so i might be able to actually use a gif or something.
Heres the file of the gif btw
I know my issue if very weird but its for a school project and i would greatly appreciate some help