286
Technical forum / Re: Testing causing hair loss : )
« on: February 10, 2009, 05:22:35 PM »
Hi there!
All scripts that run at the moment are saved in the savegame ( think of it like a "memorydump" ). So it's always safer to restart the Game. If you want your testers to start at a certain point, simply change the start scene, or do what I did:
do not forget to remove the code before release
All scripts that run at the moment are saved in the savegame ( think of it like a "memorydump" ). So it's always safer to restart the Game. If you want your testers to start at a certain point, simply change the start scene, or do what I did:
Code: [Select]
// game.script
on "Keypress" {
switch (Keyboard.Key) {
case "1" {
game.ChangeScene(blah);
...set some global variables like inventory items etc.
break;
case "2" {
...do other stuff, other scene, etc...
break;
}
}
do not forget to remove the code before release