| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (tongue_attack == true) |
| 4 |
{ |
| 5 |
with (obj_battle_enemy_attack_bigfrog_frog_run) |
| 6 |
{ |
| 7 |
if (tongue_attack == false && sprite_index != spr_bigfrog_mouth_attack) |
| 8 |
{ |
| 9 |
image_speed = 0; |
| 10 |
image_index = 0; |
| 11 |
} |
| 12 |
} |
| 13 |
tongue_attack = false; |
| 14 |
if (sprite_index != spr_bigfrog_mouth_attack) |
| 15 |
{ |
| 16 |
sprite_index = spr_bigfrog_mouth_attack; |
| 17 |
image_index = 0; |
| 18 |
image_speed = 1; |
| 19 |
var tongue = instance_create_depth(x + (9 * image_xscale), y - (9 * image_yscale), depth + 1, obj_battle_enemy_attack_bigfrog_frog_tongue); |
| 20 |
tongue.direction = random_range(30, 60); |
| 21 |
tongue.spawner = id; |
| 22 |
if (image_xscale == -1) |
| 23 |
tongue.direction += 180; |
| 24 |
} |
| 25 |
} |
| 26 |
if (sprite_index == spr_bigfrog_mouth_attack) |
| 27 |
{ |
| 28 |
image_speed = 0; |
| 29 |
image_index = image_number - 1; |
| 30 |
} |