S
SonicTheHedgehog+123
Guest
I made a pausing function based on this video of shaun spaulding
All instances get deactivated as they should when I am pressing space button but it doesnt draw a black rectangle over my screen. All I can see now is my modified backround. The depth of my pause object is the highest of all my object and its visibility is turned on. Open for any help
Here is the code of my pause object:
All instances get deactivated as they should when I am pressing space button but it doesnt draw a black rectangle over my screen. All I can see now is my modified backround. The depth of my pause object is the highest of all my object and its visibility is turned on. Open for any help
Here is the code of my pause object:
Code:
Create Event:
pause = 0;
Press Space Event:
if (!pause)
{
pause = 1;
instance_deactivate_all(true)
}
else
{
pause = 0
instance_activate_all();
}
Draw Event:
if (pause)
{
draw_set_color(c_black)
draw_rectangle(0,0,room_width,room_height,0)
draw_set_font(fnt_options);
draw_set_color(c_white);
draw_text(220,room_height/2,"Game Paused");
}