1 | if live_call() |
2 | return global.live_result; |
3 | instance_create_depth(-20, (road_1.y + 38), -100, obj_battle_enemy_attack_macro_car) |
4 | alarm[0] = car_delay |
5 | car_count -= 1 |
6 | if (car_count <= 5 && frog_noloop == false) |
7 | { |
8 | if (irandom(spawn_probability) == 0) |
9 | { |
10 | alarm[2] = 15 |
11 | frog_noloop = true |
12 | car_count += 2 |
13 | } |
14 | else |
15 | spawn_probability -= 10 |
16 | } |
17 | if (car_count <= 0) |
18 | instance_destroy() |