1 | if (!instance_exists(obj_starlo_boss_body)) |
2 | return; |
3 | if (timer == 0) |
4 | { |
5 | timer = room_speed * 5 |
6 | switch irandom_range(1, 3) |
7 | { |
8 | case 1: |
9 | instance_create_depth(660, random_range(210, 230), (obj_starlo_boss_body.depth - 1), obj_tumble_large) |
10 | break |
11 | case 2: |
12 | instance_create_depth(660, random_range(180, 210), (depth + 2), obj_tumble_medium) |
13 | break |
14 | default: |
15 | instance_create_depth(660, random_range(160, 190), (depth + 3), obj_tumble_small) |
16 | } |
17 | |
18 | } |
19 | timer-- |