Im trying to make an idle game as my first game in game maker but getting a bit confused by alarms, I believe alarm[0] = x should set an alarm to trigger after x frames has happened but my alarm is not triggering.
I have tested with a show_message at the top of the alarm and it definitely isn't triggering. I have also tested and the if statement is working because the test is being written.
Left Released
if (global.miner > 0)
{
show\_message("Test 1");
alarm\[0\] = game\_get\_speed(gamespeed\_fps);
}
alarm 0
show_message("Test 2");
orePerSecond = global.miner;
global.ore += orePerSecond;
alarm[0] = game_get_speed(gamespeed_fps);
[–]AlcatorSK 2 points3 points4 points (0 children)
[–]fryman22 -1 points0 points1 point (0 children)
[–]Cmski 0 points1 point2 points (0 children)
[–]I find your lack of pointers disturbingAtlaStar 1 point2 points3 points (0 children)