1 | vine_number = 5 |
2 | vine_distance = 60 |
3 | spawn_delay = 3 |
4 | var x_start = irandom_range(vine_distance, (640 - vine_number * vine_distance)) |
5 | var side = choose(1, 2) |
6 | if (side == 2) |
7 | { |
8 | x_start = 640 - x_start |
9 | vine_distance *= -1 |
10 | } |
11 | for (var i = 0; i < vine_number; i++) |
12 | { |
13 | var warning = instance_create_depth((x_start + i * vine_distance), 450, -100, obj_flowey_battle_gray_vine_warning) |
14 | warning.alarm[0] = i * spawn_delay |
15 | } |