.gif Animaitons

How to find or create sprites, graphics, sounds and music.

.gif Animaitons

Postby Raot » Fri Apr 22, 2011 1:14 pm

I hardly know any programming(C or otherwise), but i was able to make a couple images on gimp and use them for a moving actor, so i am proud of that.(all directions have a different animations, and when they stop they face the direction they were moving. It isn't much but i'm proud of it.)
However, i was not sure what files to use because i hardly know anything about the differences. I thought, "Hey, gifs are the moving ones right?" and i saved the images as .gif. However, they will not move. They stay on the first image when i put them in the program and don't 'animate'. (The movement was basic, i made the image go up and down so the player would not be motionless.)

I would like a rundown of the pros and cons of .gif, .jpeg, .png, and i would like to know how to fix this problem. The game still functions alright though, so, no hurry.
Raot
 
Posts: 7
Joined: Thu Apr 21, 2011 8:14 pm
Score: 0 Give a positive score

Re: .gif Animaitons

Postby skydereign » Fri Apr 22, 2011 9:47 pm

Well, when you saved it in gimp, it should have asked if you wanted it animated. Also, the frames of the images have to be different layers, so either of those could have stopped it from being animated. By default animated gifs run at the games fps, so if it isn't running that means the gif didn't work. Can you upload it here?

Pretty much, png is the best, although there are cases where the others might be better. You might look here for some comparison.
http://game-editor.com/forum/viewtopic.php?f=8&t=5576
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: .gif Animaitons

Postby Raot » Tue Apr 26, 2011 2:28 pm

here is one. It is supposed to have a small amount of blur on the second frame, but when i use it, it just stays on the first frame.


EDIT: it seams to work, but when it is in the program, it doesn't seam to animate.
Attachments
Basic Character Movment down.gif
Basic Character Movment down.gif (2.21 KiB) Viewed 3023 times
Raot
 
Posts: 7
Joined: Thu Apr 21, 2011 8:14 pm
Score: 0 Give a positive score

Re: .gif Animaitons

Postby skydereign » Tue Apr 26, 2011 7:16 pm

That's weird. I've never experienced any problems with gifs before, but I am now. It seems it only loads for me sometimes (your image). For some reason I saved it as an animation again and that image works fine. Out of curiosity, try the image to see if it works. But, ultimately this is just another reason to use pngs for your animations.
Attachments
Basic Character Movment down.gif
Basic Character Movment down.gif (2.32 KiB) Viewed 3018 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: .gif Animaitons

Postby Raot » Tue Apr 26, 2011 8:44 pm

Yep, that one works.

I'll just try to use .png next time. Right now, i already made all the images i need for my project and it would be a hassle to change it all again. Thanks.
Raot
 
Posts: 7
Joined: Thu Apr 21, 2011 8:14 pm
Score: 0 Give a positive score

Re: .gif Animaitons

Postby Jagmaster » Tue May 10, 2011 2:53 pm

Raot wrote:
I would like a rundown of the pros and cons of .gif, .jpeg, .png, and i would like to know how to fix this problem. The game still functions alright though, so, no hurry.


Do not use jpeg unless you have to. Jpegs tend to screw up your pristine background while compressing.
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: .gif Animaitons

Postby MrJolteon » Tue May 10, 2011 4:34 pm

Raot wrote:I would like a rundown of the pros and cons of .gif, .jpeg, .png

GIF:
Pros:
Animated

Cons: Can't think of any

JPEG:
Pros:
None

Cons:
Totally f***s up your image

PNG:
Pros:
Small size(I guess)
Used for a lot of stuff

Cons:
Tends to not having the background color disappear in GE(Idk why)
Not animated

(You didn't ask for it, but here you go)BMP:
Pros:
Has a bazillion ways of saving
Always makes the BG color disappear in GE(Trust me)

Cons:
Not animated
Big size
Last edited by MrJolteon on Wed May 11, 2011 6:53 am, edited 1 time in total.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: .gif Animaitons

Postby schnellboot » Tue May 10, 2011 4:42 pm

I thought BMP has a big size
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: .gif Animaitons

Postby MrJolteon » Tue May 10, 2011 4:42 pm

schnellboot wrote:I thought BMP has a big size

Apparently, it don't
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: .gif Animaitons

Postby Jagmaster » Tue May 10, 2011 4:48 pm

MrJolteon wrote:
JPEG:
Pros:
None

Cons:
Totally f***s up your image


Yeah really! :lol:
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: .gif Animaitons

Postby Game A Gogo » Tue May 10, 2011 10:59 pm

Bitmaps are bigger than png
actually it's the biggest of them all since it doesn't have any compression. The only thing I see useful in using bitmaps is to load with script so you can do transformation to it...
Other than that I always recomend png, 32-bits. So you'll need a 32-bit software if you want to work with PNG, ms paint is not native of it... so it doesn't handle it well enough with GE
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: .gif Animaitons

Postby schnellboot » Wed May 11, 2011 5:00 am

Game A Gogo wrote:Bitmaps are bigger than png
actually it's the biggest of them all since it doesn't have any compression.

So I was right xD
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: .gif Animaitons

Postby pyrometal » Wed May 11, 2011 5:35 am

MrJolteon wrote:JPEG:
Pros:
None

Cons:
Totally f***s up your image


JPEG is the format to use for photos. In full color images such as those, information loss is acceptable, thus this format permits higher compression ratios than lossless formats (aka smaller file sizes). Unless your game uses images with thousands of different colors in complex arrangements (again photos), you generally won't be using this format at all.

I recommend PNG for your every day game graphic (GIF is an 8 bit format, thus a maximum 256 colors in the file).
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: .gif Animaitons

Postby MrJolteon » Wed May 11, 2011 7:00 am

pyrometal wrote:I recommend PNG for your every day game graphic (GIF is an 8 bit format, thus a maximum 256 colors in the file).

Yeah, I mainly use PNG in Pokémon Violet(Still the total game size will always end up huge (:/) because of the audio files(They take up 75% of the game's file size, the .exe currently takes 76 kB, while the audio files take up 524 MB(RPG Maker can't make a standalone .exe, I have to include the audio and data files(Data files are not the graphics and stuff in RPG Maker, it's the database(Maps, scripts, characters, etc.))))
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: .gif Animaitons

Postby pyrometal » Wed May 11, 2011 2:28 pm

MrJolteon wrote:
pyrometal wrote:I recommend PNG for your every day game graphic (GIF is an 8 bit format, thus a maximum 256 colors in the file).

Yeah, I mainly use PNG in Pokémon Violet(Still the total game size will always end up huge (:/) because of the audio files(They take up 75% of the game's file size, the .exe currently takes 76 kB, while the audio files take up 524 MB(RPG Maker can't make a standalone .exe, I have to include the audio and data files(Data files are not the graphics and stuff in RPG Maker, it's the database(Maps, scripts, characters, etc.))))


What formats are you using for the music and sounds? NEVER use .wav for music. If you can, use midis or a tracker format (.it .xm .mod etc)
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Next

Return to Game Resources

Who is online

Users browsing this forum: No registered users and 1 guest

cron