1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (spawn_noloop == false) |
4 |
{ |
5 |
spawn_noloop = true |
6 |
x_offset = image_xscale * 10 |
7 |
x += x_offset |
8 |
} |
9 |
switch scene |
10 |
{ |
11 |
case 0: |
12 |
if (image_alpha < 1) |
13 |
image_alpha += 0.2 |
14 |
break |
15 |
} |
16 |
|
17 |
if (can_move == true) |
18 |
{ |
19 |
var lerp_speed = 0.25 |
20 |
if (image_speed != 0) |
21 |
{ |
22 |
x_offset = 0 |
23 |
lerp_speed = 0.75 |
24 |
} |
25 |
var xx = obj_heart_battle_fighting_parent.x - x_diff + x_offset |
26 |
x = lerp((x + (irandom_range(-2, 2))), xx, lerp_speed) |
27 |
y = lerp((y + (irandom_range(-2, 2))), (obj_heart_battle_fighting_parent.y - y_diff), 0.25) |
28 |
} |