Fangames > Programming Questions

Advice on how to keep the Game File size small

(1/2) > >>

Tamatou:
Hello my dear Fellows!

The amount of reactions to my Fangame really got me motivated and got me to start working on the sequel.

But I don't wanna make the same mistakes twice.
As you might know my first fangame's file size was insanly big. About 250 Mega Byte if I remember correctly.
Near the end of development the game constantly got me "Out of Memory" Error Messages and it was just a pain carry on finishing the game.

So what are the things I have to watch out for keeping the file size minimal?
I'm using Nikaple Engine this time (wich is really really awesome)

Don't be afraid to go into detail  :atkHappy:
Stuff I've been told to do + questions
-Loading Sprites and Music externally (does this aply to every single sprite I put in the game or only the really big ones?)
-Is it recommendable to use MP3 insted of WAV and something other than Bitmap for sprites?
-When using really big sprites that cover the whole screen, should I scale these sprites by code and have the actual sprite smaller?

Thank you in advance  :atkLove:

kilgour22:
Use an engine that loads music externally.

Arclooper:
In general, anything you can use code for instead of resources, do it with code.

Afaik without extensions gamemaker had issues with playing multiple mp3s and oggs at the same time, but never use .wav for your bgm. If you want real optimization for sound, look up zanto's method in IDWBA2, that game is really well optimized in that regard, although for your usual fangame that's not really needed, just choosing the type of sound file carefully should suffice :o

Try to learn a lot about the draw functions though, they can save you quite a bit in sprites if you know how to use them well, like not having to do different sprites for an HP bar that changes color or basic examples like that (I'm not good with gml so I can't give you fancy examples :p but you get the idea)

Derf:
You don't really need to bother externally loading sprites unless they're multiple megabytes in size & you should only externally loads songs not sound effects.

No need to use WAV, just use mp3 or ogg. You need extensions to play ogg files in GM8/8.1 though, but you don't for mp3. You can only play one mp3 at a time so all sound effects should be WAVs and all songs mp3s.

If it's like a blackout then yeah. But you really should just use the draw functions for things like that. If it's a sprite you can't use the draw function for and it doesn't look horrible if it's scaled then yeah just scale it.

Tamatou:
Thank you for your Advice so far.

I've never used the Draw Function so far. But it seems this function is pretty imprortant. I haven't really looked into it on how to use it and what to use it for. But I'll will try my best to get the hang of it.  :atkHappy:

The second game will feature ALOT more Dialoge and Cutscenes. These might be a problem memory wise.
Overall the second game will be about 5 times bigger than the first

Navigation

[0] Message Index

[#] Next page

Go to full version