The Daily Click ::. Forums ::. Klik Coding Help ::. Custom file types & Arrays
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
30th July, 2008 at 18:18:08 -

How do you make an MMF app have its own file type, like how Webit 2.0 has W2P files, and Fusion Updater gives special green icons to all .mfx files. Is there an extension to use, and how do you give it its own special icon?

Also, I'd like to know how people make level editors. I think it loads and saves in arrays and then the game loads up the file and builds the level, but does it build backdrops by having an active paste into the background, or are there no backdrops? I think I could figure out the rest if I knew how a level builder builds the level...

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
30th July, 2008 at 18:44:47 -

I'm not entirely sure about the first question, there would be an extension to perform file assosiations I would have thought.

You got it right about level editors, simply save the positions of your objects' locations to a file, but you can choose what method to save data with, inis are useful for small amounts of data like settings, arrays are better for larger amounts of data and are great if your levels fit into a grid. And 'Add Backdrop' would be better than paste object into background as the backdrop persists if your level scrolls.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
30th July, 2008 at 20:41:01 -

can't you save an array as any file extenstion you choose?

i beleive i read it recently on the forum, someone else asking about how to save arrays.

also if you have ever developed with a BASIC language like QuickBASIC then you know that when you 'BSAVE' an array, you can name your own file extension. this is useful when saving an array with map content. you can save it as .map or if youre saving an array with graphical bit type data, you can save it as .gfx

not sure how mmf would do it though.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
30th July, 2008 at 20:55:51 -

MMF can save an array with its own file ending i.e .map or .gfx or so. When making the save event just name the array save [whatever].[file ending]. Just remember to have it load the array with the same file ending. I don't think this works when saving and loading via a file selector though.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
   

Post Reply



 



Advertisement

Worth A Click