if you have enough money, but for some reason it always builds 2 or 3. I use objects for buttons that are destroyed and recreated every use
BUTTON CREATE EVENT
image_alpha = 0; over = 0; ima = 0; sold = 0; x = (obj_baseMenu4.x+300)-(sprite_width/2); y = (obj_baseMenu4.y+200); ic = instance_number(obj_shield_minion_good); in = ic+1;
BUTTON LEFT RELEASED EVENT
if (score>=50&&sold=0)
{
instance_create(obj_base_good.x+60,obj_base_good.y,obj_shield_minion_good);
score-=50;
sold=1;
with (obj_baseMenu4)
{
instance_destroy();
}
with (obj_baseMenu4Button1)
{
instance_destroy();
}
with (obj_baseMenu4Button3)
{
instance_destroy();
}
with (obj_baseMenu4Button4)
{
instance_destroy();
}
instance_destroy();
exit;
}











