Jorg Gjer
Member
Split from here ~Tsuk
Hi all. I have just the same problem.
There is a lot going on in the room. So to easy stop everying when pressing 'P' , I take a snapshot of the screen and bring it into the pause room.
When i hit P again i just goto the room , and everything is running as normal.
Works wonderfully.
But now I want to add the option to restart the game.
I was hoping it was as easy as :
This give fatal error when set back to true.
So I removed the line , and set persistante to true in the game room.
Then the room_goto , reports an error on the player object. I don't get it.
Why can't I go to the room after setting persistance to false ?
I feel GM allways has good solutions , so there should be a more easy way then storing all that is going on in the room.
Also I want to be 100% that all in the room is reset.
So i feel this case is not SOLVED
Would be happy if anyone can help.
Greeting
Hi all. I have just the same problem.
There is a lot going on in the room. So to easy stop everying when pressing 'P' , I take a snapshot of the screen and bring it into the pause room.
When i hit P again i just goto the room , and everything is running as normal.
Works wonderfully.
But now I want to add the option to restart the game.
I was hoping it was as easy as :
GML:
gameroom.persistent = false;
gameroom.persistent = true;
room_goto(gameroom);
So I removed the line , and set persistante to true in the game room.
Then the room_goto , reports an error on the player object. I don't get it.
Why can't I go to the room after setting persistance to false ?
I feel GM allways has good solutions , so there should be a more easy way then storing all that is going on in the room.
Also I want to be 100% that all in the room is reset.
So i feel this case is not SOLVED
Would be happy if anyone can help.
Greeting
Last edited: