How do you...

Game Editor comments and discussion.

How do you...

Postby RippeR7420 » Tue Nov 23, 2010 2:23 am

Make a score transfer from one file to another one? Say on level one you get 200 points, and when you finish the level it loads another game file. is there a way to link the score so it stays the same?
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: How do you...

Postby skydereign » Tue Nov 23, 2010 3:04 am

Have a score variable under a save group, and use saveVars to save the score, and in the other game use loadVars, to load the score. There are plenty of topics about saving and loading. You can also look at the script reference.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How do you...

Postby RippeR7420 » Tue Nov 23, 2010 7:35 am

Thanks skydereign :) Once again, You've saved me, haha.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron