1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
image_alpha = obj_crayon_minigame.draw_alpha; |
4 |
if (image_index < (image_number - 1)) |
5 |
{ |
6 |
var new_offset = crayon_y_offset; |
7 |
if (image_index > 4) |
8 |
new_offset = crayon_y_offset - ((crayon_y_offset * (image_index - 4)) / (image_number - 4 - 1)); |
9 |
with (obj_crayon) |
10 |
draw_y_offset = new_offset; |
11 |
} |
12 |
else |
13 |
{ |
14 |
if (crayon_y_offset > 0) |
15 |
{ |
16 |
crayon_y_offset = 0; |
17 |
with (obj_crayon) |
18 |
draw_y_offset = 0; |
19 |
} |
20 |
image_speed = 0; |
21 |
image_index = image_number - 1; |
22 |
} |