merging games

Game Editor comments and discussion.

merging games

Postby ESL » Thu Aug 19, 2010 5:06 am

If I have 3 different games that I want to merge into one, what is the best way to sequence from one to the next?
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: merging games

Postby Game A Gogo » Thu Aug 19, 2010 10:58 am

remember this about merging games:
actors/variable with the same name won't get replaced/created, so have your vital in loaded, then merge in the other games in order you want to keep the var/actor.

To tell you more would require knowing more!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: merging games

Postby ESL » Thu Aug 19, 2010 10:33 pm

I want to make it so that the next game loads after all the actors in the previous game have been destroyed.
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: merging games

Postby Game A Gogo » Fri Aug 20, 2010 12:01 am

uh, that's outside the purpose of merging games... use the loadgame("game.dat");
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: merging games

Postby ESL » Fri Aug 20, 2010 12:19 am

Is there a command that will recognize that all the actors have been destroyed before it execute the loadgame script
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: merging games

Postby Game A Gogo » Fri Aug 20, 2010 12:42 am

you can use this:
Code: Select all
if(ActorCount"Ennemy")==0)LoadGame("SecondLevel.dat");

change Ennemy with the actor you want to trigger the second level when there is no more of it.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: merging games

Postby ESL » Fri Aug 20, 2010 3:13 am

Decent advice and much thanks. The challenge is that all my shooting actors have different names so I need a way to group just the shots without saying destroy All Actors because some of the other actors are scenery.
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: merging games

Postby Game A Gogo » Fri Aug 20, 2010 3:40 am

have multiple conditions
like
Code: Select all
if(ActorCount("a")==0&&ActorCount("b")==0)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: merging games

Postby ESL » Fri Aug 20, 2010 4:34 am

Do I insert the code as a CreateActor action?
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: merging games

Postby Game A Gogo » Fri Aug 20, 2010 12:15 pm

no, do it whenever you are destroying the actors
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron