Do you know how to use variables? If so this should be pretty straightforward. Namely, you need to set the actor's lives to some non-zero value. You can do this in the actor's create actor event.
actor -> Create Actor -> Script Editor
- Code: Select all
lives=3;
Then whenever you decrease the lives (by decreasing the variables) you can use an if to check if lives is less than or equal to 0). In the if statement you call LoadGame to load the other game file.
- Code: Select all
lives--; // decrease lives by 1
if(lives<=0)
{
LoadGame("other_game");
}
As for loadVars and saveVars, have you looked at the tutorials on these forums and/or the script reference? We can't know where you went wrong if you don't tell us, and we don't know what you've tried that didn't work.