1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
switch attack_tick |
5 |
{ |
6 |
case 15: |
7 |
case 75: |
8 |
case 135: |
9 |
var log = instance_create_depth((battle_box.bbox_left - 94), (battle_box.bbox_bottom - 4 - 17), -100, obj_bigfrog_log) |
10 |
width_inc = (sprite_get_width(spr_bigfrog_log) - 10) / 4 |
11 |
for (var i = log.bbox_left + 17; i <= log.bbox_right; i += width_inc) |
12 |
{ |
13 |
var frog = instance_create_depth(i, log.bbox_top, -101, obj_bigfrog_log_frog) |
14 |
frog.x_offset = frog.x - log.x |
15 |
frog.spawner_log = log |
16 |
if ((frog_count % 2) == 0) |
17 |
frog.jump_interval *= 1.5 |
18 |
frog.alarm[0] = frog.jump_interval |
19 |
if (frog_count == frog_green) |
20 |
frog.is_green = true |
21 |
frog_count += 1 |
22 |
} |
23 |
break |
24 |
case 250: |
25 |
instance_destroy() |
26 |
break |
27 |
} |
28 |
|
29 |
attack_tick += 1 |