1 |
if (state == 1 && image_speed == 0) |
2 |
{ |
3 |
if (!alarm[0]) |
4 |
{ |
5 |
alarm[0] = active_timer;gml_Object_obj_factory_03_furnace_Alarm_0.gmlsprite_index = spr_factory_03_furnace_offon;
image_index = image_number - 1;
image_speed = -1;
state = 2;
with (child_light)
destroy_self = true;
child_light = -4;
audio_play_sound(snd_fire_snuff_out, 1, 0);
audio_stop_sound(fire_loop); |
6 |
audio_play_sound(snd_fire_ignite, 1, 0); |
7 |
fire_loop = audio_play_sound(snd_fire_loop, 1, 1); |
8 |
image_speed = 1; |
9 |
} |
10 |
if (child_light == -4) |
11 |
child_light = instance_create_depth(x + 52, y - 6, depth - 1, obj_factory_03_furnace_light); |
12 |
} |
13 |
if (state == 2) |
14 |
{ |
15 |
if (image_index <= 0) |
16 |
{ |
17 |
image_index = 0; |
18 |
image_speed = 0; |
19 |
state = 0; |
20 |
} |
21 |
} |
22 |
if (state == 1) |
23 |
{ |
24 |
if (text_alpha < 0.8) |
25 |
text_alpha += 0.05; |
26 |
} |
27 |
else if (text_alpha > 0) |
28 |
{ |
29 |
text_alpha -= 0.05; |
30 |
} |