S
Stratos.la
Guest
so yea! after u unpause the game a few of my other elements get behind others! i have it in the draw event but it doenst change if i use draw gui.
this is my draw event
and my left pressed event
this is my draw event
GML:
draw_self();
if PAUSED
{
if surface_exists(pausesrf)
{
draw_surface(pausesrf,0,0)
}
//////////
draw_set_color(c_black)
draw_set_alpha(0.5)
draw_rectangle(0,0,room_width,room_height,0)
draw_set_alpha(1)
}
else if !PAUSED
{
if surface_exists(pausesrf)
{surface_free(pausesrf)}
}
GML:
PAUSED = !PAUSED
if (PAUSED)
{
if !surface_exists(pausesrf)
{
pausesrf = surface_create(room_width,room_height);
surface_copy(pausesrf,0,0,application_surface)
}
instance_deactivate_all(true)
instance_create_depth(room_width/2,room_height/2,-100,obj_paused_menu)
}
else if (!PAUSED)
{
instance_activate_all();
if surface_exists(pausesrf)
{surface_free(pausesrf)}
instance_destroy(obj_paused_menu);
}