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 != -4) |
5 |
{ |
6 |
tongue_parent = collider; |
7 |
is_caught = true; |
8 |
} |
9 |
if (tongue_parent != -4) |
10 |
{ |
11 |
if (instance_exists(tongue_parent)) |
12 |
{ |
13 |
x = tongue_parent.x; |
14 |
y = tongue_parent.y; |
15 |
} |
16 |
else |
17 |
{ |
18 |
instance_destroy(); |
19 |
} |
20 |
exit; |
21 |
} |
22 |
x_offset = random_range(-jitter, jitter); |
23 |
x_normal += hsp; |
24 |
x = x_normal + x_offset; |
25 |
y_offset = random_range(-jitter, jitter); |
26 |
y = ystart + y_offset; |