Sharing game data between levels

Game Editor comments and discussion.

Sharing game data between levels

Postby Guardian69 » Sat Jun 11, 2011 3:52 pm

Hi guys,

Another question. Pfff... I really am testing you guys at the moment.

Is there a way to share scripts between levels?

Cheers,
Guardian
User avatar
Guardian69
 
Posts: 17
Joined: Thu May 26, 2011 9:05 pm
Location: United Kingdom
Score: 0 Give a positive score

Re: Sharing game data between levels

Postby MrJolteon » Sat Jun 11, 2011 7:08 pm

saveVars and loadVars

To save a variable, do this:
Code: Select all
saveVars("variable", "group");

To load, do this:
Code: Select all
loadVars("variable, "group");
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Sharing game data between levels

Postby schnellboot » Sat Jun 11, 2011 8:22 pm

you can save the script to an extra file and load it in ge
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Sharing game data between levels

Postby Guardian69 » Tue Jul 05, 2011 12:02 pm

Thank you guys,

That really helps.
User avatar
Guardian69
 
Posts: 17
Joined: Thu May 26, 2011 9:05 pm
Location: United Kingdom
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest