P
PHL
Guest
Please, I am not stupid, but I have trouble making a background from a surface.
I wanted to make a Pause system where in a room, you press Pause and you go to a pause room whose background is an image of the room you left behind. This gives the illusion that you are still in the same room, and it saves work because I simply freeze the room's action by making it persistent before going to the pause room.
But I cannot make a background from the current stage. I have created a surface in the Draw event, used surface_set_target on it, tried to draw the view on it with the view_surface_id function, then used the background_create_from_surface function and finally deleted the made surface and gone to pause room.
Then in pause room I say background_index[0]=global.pause_background.
But in the pause room the background does not appear.
I'm sure it was created because I said go to pause room if background_exists(global.pause_background).
But I do not see it.
Can anyone help?
The older Game Makers were much easier to use with their now-obsolete background_create_from_screen() function.
I wanted to make a Pause system where in a room, you press Pause and you go to a pause room whose background is an image of the room you left behind. This gives the illusion that you are still in the same room, and it saves work because I simply freeze the room's action by making it persistent before going to the pause room.
But I cannot make a background from the current stage. I have created a surface in the Draw event, used surface_set_target on it, tried to draw the view on it with the view_surface_id function, then used the background_create_from_surface function and finally deleted the made surface and gone to pause room.
Then in pause room I say background_index[0]=global.pause_background.
But in the pause room the background does not appear.
I'm sure it was created because I said go to pause room if background_exists(global.pause_background).
But I do not see it.
Can anyone help?
The older Game Makers were much easier to use with their now-obsolete background_create_from_screen() function.