Pause Code

mail@pastecode.io avatar
unknown
plain_text
2 years ago
336 B
1
Indexable
Never

if(keyboard_check(vk_return)) 
{
  if(showButton == false) 
  {
     showButton = true;
  } else 
  {
    showButton = false;
   
  }
}

if(showButton == true)
{
instance_create_layer(100,100,"Instances",Obj_Button);
} 

if (showButton == false)
{  
    
instance_destroy(Obj_Button);
//audio_stop_sound(Eric_Cartman___Poker_Face);
 
}