1 |
if live_call() |
2 |
return global.live_result; |
3 |
var collider = instance_place(x, y, obj_battle_enemy_attack_bigfrog_frog_tongue_tip) |
4 |
if (is_caught == false && collider != noone) |
5 |
{ |
6 |
tongue_parent = collider |
7 |
is_caught = true |
8 |
} |
9 |
if (tongue_parent != noone) |
10 |
{ |
11 |
if instance_exists(tongue_parent) |
12 |
{ |
13 |
x = tongue_parent.x |
14 |
y = tongue_parent.y |
15 |
} |
16 |
else |
17 |
instance_destroy() |
18 |
return; |
19 |
} |
20 |
x_offset = random_range((-jitter), jitter) |
21 |
x_normal += hsp |
22 |
x = x_normal + x_offset |
23 |
y_offset = random_range((-jitter), jitter) |
24 |
y = ystart + y_offset |