Page 1 of 1

Loading Levels From a File

PostPosted: Sun Sep 25, 2005 10:23 am
by siege1975
I am making a simple breakout style game and idealy I would like to load the levels from a datafile.

How would I go about doing this, please.



CJ
8)

PostPosted: Mon Sep 26, 2005 5:49 pm
by makslane

PostPosted: Mon Sep 26, 2005 9:00 pm
by siege1975
makslane wrote:Use the LoadGame function.

More info here:
http://www.game-editor.com/docs/script_ ... m#loadgame
http://game-editor.com/games/breakout.zip (Breakout demo)


Okay, had a quick look at the docs but they don't really say much. So a few follow up questions if that's ok.

Does that then mean that I have to program a new .ged for each and every level I want to make. That could get kinda large could it not? I'm hoping that these don't have to be compiled in some way do they. Also, not so great if I wanted to maintain a level of copyright.

Are variable's persistant using this method at all do you happen to know?

Is there perhaps another way?

Excuse all the question's but I'm new at this language :)

CJ

PostPosted: Mon Sep 26, 2005 9:51 pm
by Fuzzy
you want to save your vars before the load, then reload them after you load the next level.