Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (108)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Sprites, Animations and Gifs  (Read 6557 times)
0 Members and 1 Guest are viewing this topic.
Offline MonkeySpotted

Junior Newbie





« Posted 2011-12-20 01:20:13 »

Hello,

First of all, I'd like to introduce myself. This is my first post in this forum, although I have been, for some time now, reading quite a lot of posts in this forum.

Me and my friend are creating a 2D game (in plain old SE Java) which involves sprites and .gif files. We have already made quite a bit of progress now. We do have some animated gifs we got from the internet and have already implemented it in the game. Now, I see a lot of spritesheets hanging around the internet, but I can't seem to find any ready-to-use animated gifs out there. The problem is not the spritesheet -> gif procedure per se, but the scarcity of automated tools to make them. So here comes my first question:

Are there any Spritesheet -> Animated gifs tools that can at least ease the process?

It really gets on my nerves when I have to sit down and create a bunch of sprites separately from the spritesheets to then create a gif. This wastes my time considerably and doesn't let me do what I love most, actual coding.

I have seen some tools that have satisfied me to a certain point. spriteBuddy and darkFunction's editor came this close to solving my problem, but the issue was: they, instead of outputting an actual gif, just gave me an xml (which is pretty much useless for me). I liked the way these two editors allowed me to get sprites from a sprite sheet and make a simple animation with them with no effort whatsoever. That said, here's my second question:

Are there any XML -> Animated gifs tools that I can use to parse the xml files to an actual gif?

I've been looking for these tools for a long time, and I can't seem to find ANY of these. I hope you guys can help me.

Thank you in advance,
~MonkeySpotted
Online Riven
« League of Dukes »

JGO Overlord


Medals: 749
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2011-12-20 01:26:21 »

With a few lines of code, you can use my code:
   http://riven8192.blogspot.com/2010/02/image-java-animated-gifs.html
to create your own animated GIFs from Java.

Beats any editor!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline MonkeySpotted

Junior Newbie





« Reply #2 - Posted 2011-12-20 01:40:53 »

Hello Riven,

Thanks for the help, but I don't think that's exactly what I'm looking for right now. For what I understood from your code, you send a series of images and convert them into an animated gif, right? What I really am looking for is a tool to take single sprites from sprite sheets of the same size and then position them correctly (like darkFunction does) and then convert them into animated gifs.

Maybe if I could just find a tool that took individual sprites from a sprite sheet I could even make use of your code... Although I do like the idea of an effortless editor.

I'll be sure to bookmark your blog for further reference, though, I found it quite interesting and may have some usage for me in the future!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online Riven
« League of Dukes »

JGO Overlord


Medals: 749
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2011-12-20 01:43:51 »

Maybe if I could just find a tool that took individual sprites from a sprite sheet I could even make use of your code...
Do you mean something like:
   BufferedImage.getSubimage(int x, int y, int w, int h)

I assume you have the coordinates laying around somewhere (although preferably they are simply calculated) so why not pull sub-images (sprites) from an image (spritesheet) and feed them into the GIF generator?

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline MonkeySpotted

Junior Newbie





« Reply #4 - Posted 2011-12-20 01:48:21 »

The problem is: many of the sprite sheets I have found in the internet don't have a proportional individual sprite location. That means I would have to either way manually cut them up. Maybe with a visual editor it would make things easier...
Offline ra4king

JGO Kernel


Medals: 341
Projects: 2
Exp: 5 years


I'm the King!


« Reply #5 - Posted 2011-12-20 02:11:08 »

Then you have 2 options here:
- Use an image editor and make them all the same size
- Write to a file the coordinates for each image

Offline StumpyStrust
« Reply #6 - Posted 2011-12-21 09:05:41 »

Any time sprite comes up the first thing I  think of using is GameMaker's Spite Editor.

It does not save to .gif but will let you add images from sprites sheets that can be any size and adjust them accordingly.

It will also let you do other useful things like colorize, set opacity, sharpen, glow and some basic animation.

It will save a sprite sheet as a .png which you should be able to convert into a .gif

Hope this helps.  Cheesy

Offline MonkeySpotted

Junior Newbie





« Reply #7 - Posted 2011-12-22 00:19:46 »

Hey StumpyStrust,

Thanks for the tip. I'll check it out once I get some free time. I have seen some posts about that Game Maker sprite editor, but many were complaints of how badly done it was. Nonetheless, I'll be sure to try it out. After all, I'm getting on a pretty tight spot here.  Undecided
Offline darkFunction

Senior Newbie


Medals: 4



« Reply #8 - Posted 2012-02-22 19:34:55 »

hey

I wrote a GIF exporter into darkFunction Editor.

I'll upload it when I get time this week, if you're still interested.
Offline FireFreek

Senior Newbie


Projects: 1



« Reply #9 - Posted 2012-02-29 03:30:34 »

Not sure if this is what you're looking for, but once I was spriting and thought, "Hey, I wish I could see these animated!" But I didn't have internet at the time so I wrote a tool myself. It's mostly for checking the animation, but it also can save as an animated .gif. The images have to be evenly spaced, however (you can specify sprite height and width).

http://thisissilly.x10.mx/spriteviewer.php

EDIT: It seems you don't have them aligned, so this wouldn't really work. Shame.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Longarmx
« Reply #10 - Posted 2012-03-27 06:20:23 »

I know that you can make gifs in photoshop. Just look up on YouTube how to do it. All you really have to do is cut up the sprite sheet into layers for each frame and put it into a movie format, and then export as a gif. YouTube will also give you a better description on making gifs if you don't get what I mean.

Offline Pat

Innocent Bystander





« Reply #11 - Posted 2012-07-10 09:19:05 »

Hi,
Just wanted to point you to a tool I developed that can export gifs from a sprite sheet.
It's called Sprite Buddy you can find it at www.spritebuddy.com.
Cheers,
Pat
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (17 views)
2014-07-30 21:08:39

Riven (23 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!