How can I load a level using LoadGame()?

Game Editor comments and discussion.

How can I load a level using LoadGame()?

Postby laddsa » Sun Nov 19, 2006 6:18 pm

Hi, I have an actor in a Ged file that has a mousebutton down event to use the LoadGame() function to load a dat file with an actor.

So, when I create the .exe from this Ged and run it, then click on the actor then it loads the .dat file, and displays the new actor but it overwrites the original actor!

How can I load the actor from a .dat file into a main file without overwriting the main file's actors?

Many thanks,

Laddsa
laddsa
 
Posts: 22
Joined: Sun Jul 24, 2005 10:18 am
Score: 0 Give a positive score

Postby makslane » Sun Nov 19, 2006 7:31 pm

The LoadGame function don't merge the games.
So, after use the LoadGame, the new game will replace the old game.
If you need an actor in both levels, you need to put the actor in both ged files.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby laddsa » Sun Nov 19, 2006 8:37 pm

ok, thanks.
laddsa
 
Posts: 22
Joined: Sun Jul 24, 2005 10:18 am
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest