Page 1 of 2

.gif Animaitons

PostPosted: Fri Apr 22, 2011 1:14 pm
by Raot
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.

Re: .gif Animaitons

PostPosted: Fri Apr 22, 2011 9:47 pm
by skydereign
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

Re: .gif Animaitons

PostPosted: Tue Apr 26, 2011 2:28 pm
by Raot
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.

Re: .gif Animaitons

PostPosted: Tue Apr 26, 2011 7:16 pm
by skydereign
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.

Re: .gif Animaitons

PostPosted: Tue Apr 26, 2011 8:44 pm
by Raot
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.

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 2:53 pm
by Jagmaster
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.

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 4:34 pm
by MrJolteon
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

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 4:42 pm
by schnellboot
I thought BMP has a big size

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 4:42 pm
by MrJolteon
schnellboot wrote:I thought BMP has a big size

Apparently, it don't

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 4:48 pm
by Jagmaster
MrJolteon wrote:
JPEG:
Pros:
None

Cons:
Totally f***s up your image


Yeah really! :lol:

Re: .gif Animaitons

PostPosted: Tue May 10, 2011 10:59 pm
by Game A Gogo
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

Re: .gif Animaitons

PostPosted: Wed May 11, 2011 5:00 am
by schnellboot
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

Re: .gif Animaitons

PostPosted: Wed May 11, 2011 5:35 am
by pyrometal
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).

Re: .gif Animaitons

PostPosted: Wed May 11, 2011 7:00 am
by MrJolteon
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.))))

Re: .gif Animaitons

PostPosted: Wed May 11, 2011 2:28 pm
by pyrometal
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)