Jump to content
  • 0

Question

Posted

So i'm just starting out with C#, pretty inexperienced I must say. I'm trying to replace the background.png file with an animated gif in the source code and json files and I just get a black background, no rendering. I suppose this is because the form background doesent support gifs? Any way around this? 

 

Sorry, I know this is a silly question I am trying to learn more c# so I understand things better

2 answers to this question

Recommended Posts

  • 1
Posted

MonoGame itself doesn't support gifs. You'd have to get some sort of extension to read your gif, make pngs for each frame (whether it be in memory or on the disk) and then edit the source to rotate between rendering those images at a certain time interval.

×
×
  • Create New...