Page 1 of 1

Sharing game data between levels

PostPosted: Sat Jun 11, 2011 3:52 pm
by Guardian69
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

Re: Sharing game data between levels

PostPosted: Sat Jun 11, 2011 7:08 pm
by MrJolteon
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");

Re: Sharing game data between levels

PostPosted: Sat Jun 11, 2011 8:22 pm
by schnellboot
you can save the script to an extra file and load it in ge

Re: Sharing game data between levels

PostPosted: Tue Jul 05, 2011 12:02 pm
by Guardian69
Thank you guys,

That really helps.