I need to know how to do 2 things in my game:
First, how do i restart the game, using a javascript call?(When i press F5, it changes the resolution back to default 816x624. Will this javascript call do the same? If so, how to i avoid it?).I need it to reload everything again in a certain moment.
And second, does MV keep the value of a variable when it launch?(Let's say i, inside options menu, change variable "5" from 1 to 2.If i close the game and open again, does it keep being 2?)Also, using the script to restart the game, will it keep the same way?
If not, how do i save it being inside the title menu?
First, how do i restart the game, using a javascript call?(When i press F5, it changes the resolution back to default 816x624. Will this javascript call do the same? If so, how to i avoid it?).I need it to reload everything again in a certain moment.
And second, does MV keep the value of a variable when it launch?(Let's say i, inside options menu, change variable "5" from 1 to 2.If i close the game and open again, does it keep being 2?)Also, using the script to restart the game, will it keep the same way?
If not, how do i save it being inside the title menu?