1 | if (!indicator_on) |
2 | { |
3 | indicator_on = true |
4 | flash_count -= 1 |
5 | with (obj_factory_02_conveyor_indicator) |
6 | sprite_index = spr_conveyor_indicator_green |
7 | } |
8 | else |
9 | { |
10 | indicator_on = false |
11 | with (obj_factory_02_conveyor_indicator) |
12 | sprite_index = spr_conveyor_indicator_idle |
13 | } |
14 | if (flash_count <= 0) |
15 | { |
16 | obj_factory_02_controller_02.scene += 1 |
17 | instance_destroy() |
18 | } |
19 | else |
20 | alarm[0] = 10 |