Loading Levels From a File

Game Editor comments and discussion.

Loading Levels From a File

Postby siege1975 » Sun Sep 25, 2005 10:23 am

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)
User avatar
siege1975
 
Posts: 7
Joined: Sat Sep 24, 2005 1:00 am
Location: UK
Score: 0 Give a positive score

Postby makslane » Mon Sep 26, 2005 5:49 pm

makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby siege1975 » Mon Sep 26, 2005 9:00 pm

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
User avatar
siege1975
 
Posts: 7
Joined: Sat Sep 24, 2005 1:00 am
Location: UK
Score: 0 Give a positive score

Postby Fuzzy » Mon Sep 26, 2005 9:51 pm

you want to save your vars before the load, then reload them after you load the next level.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest