| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
var needle_count = 3; |
| 4 |
switch (scene) |
| 5 |
{ |
| 6 |
case 0: |
| 7 |
image_alpha += 0.1; |
| 8 |
if (image_alpha >= 1) |
| 9 |
{ |
| 10 |
image_alpha = 1; |
| 11 |
scene++; |
| 12 |
} |
| 13 |
break; |
| 14 |
case 1: |
| 15 |
image_yscale = lerp(image_yscale, 0.5, 0.15); |
| 16 |
x = xstart + irandom_range(-3, 3); |
| 17 |
y = ystart + irandom_range(-3, 3); |
| 18 |
cutscene_wait(shoot_delay); |
| 19 |
break; |
| 20 |
case 2: |
| 21 |
image_speed = 1.5; |
| 22 |
speed = -4; |
| 23 |
var spawn_dir_current; |
| 24 |
if (x < 320) |
| 25 |
spawn_dir_current = -45; |
| 26 |
else |
| 27 |
spawn_dir_current = 135; |
| 28 |
for (var i = 0; i < needle_count; i++) |
| 29 |
{ |
| 30 |
var needle = instance_create_depth(x + random_range(-15, 15), y + random_range(-15, 15), -100, obj_flowey_battle_phase_2_yarn_needle); |
| 31 |
needle.direction = spawn_dir_current; |
| 32 |
needle.speed = 11; |
| 33 |
spawn_dir_current += 45; |
| 34 |
} |
| 35 |
if (image_index >= (image_number - 1)) |
| 36 |
{ |
| 37 |
image_speed = 0; |
| 38 |
image_index = 0; |
| 39 |
scene++; |
| 40 |
} |
| 41 |
break; |
| 42 |
case 3: |
| 43 |
image_alpha -= 0.2; |
| 44 |
if (image_alpha <= 0) |
| 45 |
instance_destroy(); |
| 46 |
break; |
| 47 |
} |
| 48 |
if (scene >= 2) |
| 49 |
image_yscale = lerp(image_yscale, 1, 0.25); |