1 |
if live_call() |
2 |
return global.live_result; |
3 |
var heart = obj_heart_battle_fighting_parent |
4 |
if (image_alpha <= 1) |
5 |
image_alpha += 0.2 |
6 |
if (image_index >= 11 && move_noloop == false && warn_timer == -1) |
7 |
{ |
8 |
direction = point_direction(x, y, heart.x, heart.y) |
9 |
speed = move_speed |
10 |
image_speed = 0 |
11 |
image_xscale = 1.5 |
12 |
image_yscale = 1.5 |
13 |
hold_timer = 7 |
14 |
move_noloop = true |
15 |
} |
16 |
if (warn_timer > 0) |
17 |
warn_timer-- |
18 |
else if (warn_timer != -1) |
19 |
{ |
20 |
if (!warn_flash) |
21 |
{ |
22 |
warn_timer = 3 |
23 |
warn_flash = true |
24 |
audio_play_sound(snd_bullet_warning, 1, 0) |
25 |
image_blend = c_red |
26 |
} |
27 |
else |
28 |
{ |
29 |
move_noloop = false |
30 |
warn_timer = -1 |
31 |
image_blend = c_white |
32 |
} |
33 |
} |
34 |
if (hold_timer > 0) |
35 |
hold_timer-- |
36 |
else |
37 |
image_speed = image_speed_base |
38 |
if (speed > 0) |
39 |
speed -= 0.5 |
40 |
else |
41 |
speed = 0 |
42 |
if (image_xscale > 1.05) |
43 |
image_xscale = lerp(image_xscale, 1, 0.15) |
44 |
else |
45 |
image_xscale = 1 |
46 |
image_yscale = image_xscale |