I do run a common event when starting a new game/ loading an existing game. In this common event I want to check a variable and if that variable is "1", the code fires.
if (fst === 1) {
Graphics._requestFullScreen();
}
I am using Yanfly Options core and I want to set var fst = 1, when cursor is moved to the right. And var fst = 0, when cursor is moves to the left. The problem is that $gameVariables are stored inside save files. So I need to create a variable that is independent of save files and i don't know how to do that.
I tried: cursor right code: graphics._fst = 1;
common event code:
var fst = graphics._fst;
if (fst === 1) {
Graphics._requestFullScreen();
}
That worked only if I changed the option before launching a new/existing game. So whatever i did there didnt work after restarting the client.
I tried the same with
ConfigManager._fst = 1;
the results were the same.
Olivia_MetaControls gives me an error, when using another more important plugin. "'match' is undefined".
if (fst === 1) {
Graphics._requestFullScreen();
}
I am using Yanfly Options core and I want to set var fst = 1, when cursor is moved to the right. And var fst = 0, when cursor is moves to the left. The problem is that $gameVariables are stored inside save files. So I need to create a variable that is independent of save files and i don't know how to do that.
I tried: cursor right code: graphics._fst = 1;
common event code:
var fst = graphics._fst;
if (fst === 1) {
Graphics._requestFullScreen();
}
That worked only if I changed the option before launching a new/existing game. So whatever i did there didnt work after restarting the client.
I tried the same with
ConfigManager._fst = 1;
the results were the same.
Olivia_MetaControls gives me an error, when using another more important plugin. "'match' is undefined".