Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
General Discussion

Making a preview gif using sprites?

FiveBrosStopMosYT
Tuesday, January 25, 2022 - 16:48
FiveBrosStopMosYT's picture

For my upcoming submission LPC Fish, I want one of the previews to be a gif of the fish swimming around a pond. However, I can't find anything I can use to animate the sprites into a gif. Any suggestions for programs like that? Thanks! :)

  • Log in or register to post comments
Ragnar Random
joined 4 years 2 months ago
Wednesday, January 26, 2022 - 04:35
Ragnar Random's picture

EZGif is best online solution IMO. They have a nice spritesheet cutter too.

I am sure there are plenty of downloadable softwares as well, I just prefer to use EZGif.

  • Log in or register to post comments
bzt
joined 4 years 3 weeks ago
Wednesday, January 26, 2022 - 06:49
bzt's picture

"However, I can't find anything I can use to animate the sprites into a gif. Any suggestions for programs like that?"

You can do that with the GIMP. I'm not saying it's easy, but perfectly doable:

  1. Put every frame into a separate layer (first frame at the bottom, last on the top). There's an "Open File as Layer" in the "File" menu, or you can paste the content and press "Add New Layer" (this way it will paste it into a new layer).
  2. To shrink the output gif's size, choose from the menu "Filters" > "Animation" > "Optimize (Difference)" (there's also an optimize for GIF option, but it doesn't really work in my experience. Optimizing for difference always works.)
  3. From the menu, choose "File" > "Export As"
  4. Give it a name which ends in ".gif" and press "Export"
  5. In the popup window, check "GIF Options" > "As animation".
  6. Press "Export" and voilá.

If you're not afraid of command line, then you can use ImageMagick, standard package on all distro. It provides a command "convert" which can convert a series of pngs into an animated gif like

convert -delay 100 *.png animated.gif

Another possibility is using ffmpeg. It is for videos by default, but it can be used to create animgif from a list of png files too.

ffmpeg -framerate 30 -pattern_type glob -i '*.png' -r 10 animated.gif

Cheers
bzt

  • Log in or register to post comments
FiveBrosStopMosYT
joined 4 years 6 months ago
Wednesday, January 26, 2022 - 09:34
FiveBrosStopMosYT's picture

Thanks for your suggestions guys, but I think I wasn't clear enough. I've been using Ezgif for a while, what I need is to create something as if it was gameplay, where the sprites move around on a static tilemap.

  • Log in or register to post comments
Ragnar Random
joined 4 years 2 months ago
Wednesday, January 26, 2022 - 10:10
Ragnar Random's picture

oh. look at https://www.screentogif.com/ and https://getsharex.com/

  • Log in or register to post comments
FiveBrosStopMosYT
joined 4 years 6 months ago
Wednesday, January 26, 2022 - 10:13
FiveBrosStopMosYT's picture

Ok, thank you, that should work. :) I'll put together a script in scratch and see how it goes.

  • Log in or register to post comments