Hi, i am making a tycoon game right now. But something is not working. I am trying right now to make an autoclicker. But somthing is not working wioth the alarm. if i set it to one, it works, but if i set it to 2, it doesnt work anymore, here the code :
the step event from my click object:
if(global.auto_clicker_mode == true)
{
alarm[0] = 1;
}
the alarm 0 event fron my click object:
global.coin_score = global.coin_score + 1;
the create event from the autoclicker:
//auto clicker mode
global.auto_clicker_mode = false;
upgrade_price = 1;
the touch event from the autoclicker:
if (global.coin_score > upgrade_price)
{
instance_destroy();
global.coin_score = global.coin_score - upgrade_price;
global.auto_clicker_mode = true;
}
it would be nice if u can help me guys
the step event from my click object:
if(global.auto_clicker_mode == true)
{
alarm[0] = 1;
}
the alarm 0 event fron my click object:
global.coin_score = global.coin_score + 1;
the create event from the autoclicker:
//auto clicker mode
global.auto_clicker_mode = false;
upgrade_price = 1;
the touch event from the autoclicker:
if (global.coin_score > upgrade_price)
{
instance_destroy();
global.coin_score = global.coin_score - upgrade_price;
global.auto_clicker_mode = true;
}
it would be nice if u can help me guys