| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
switch (scene) |
| 4 |
{ |
| 5 |
case 0: |
| 6 |
if (!instance_exists(obj_battle_enemy_attack_slither_warning)) |
| 7 |
scene++; |
| 8 |
break; |
| 9 |
case 1: |
| 10 |
image_yscale = lerp(image_yscale, 1.51, 0.2); |
| 11 |
image_xscale = 1 - ((image_yscale / 1.5) * 0.3); |
| 12 |
if (image_yscale >= 1.5) |
| 13 |
{ |
| 14 |
image_xscale = 0.7; |
| 15 |
image_yscale = 1.5; |
| 16 |
scene++; |
| 17 |
} |
| 18 |
break; |
| 19 |
case 2: |
| 20 |
image_yscale = lerp(image_yscale, 0.99, 0.25); |
| 21 |
image_xscale = 1 - (((image_yscale - 1) / 0.5) * 0.3); |
| 22 |
if (image_yscale <= 1) |
| 23 |
{ |
| 24 |
image_xscale = 1; |
| 25 |
image_yscale = 1; |
| 26 |
scene++; |
| 27 |
} |
| 28 |
break; |
| 29 |
case 3: |
| 30 |
cutscene_wait(4); |
| 31 |
if (spawn_delay > 0) |
| 32 |
{ |
| 33 |
spawn_delay--; |
| 34 |
} |
| 35 |
else |
| 36 |
{ |
| 37 |
var clay_piece = instance_create_depth(x, y, -100, obj_battle_enemy_attack_slither_snake_clay_piece); |
| 38 |
clay_piece.direction = spawn_direction; |
| 39 |
clay_piece.speed = 10; |
| 40 |
spawn_direction += spawn_direction_inc; |
| 41 |
if (spawn_direction >= spawn_direction_max || spawn_direction <= spawn_direction_min) |
| 42 |
{ |
| 43 |
spawn_direction_inc *= -1; |
| 44 |
spawn_direction += (spawn_direction_inc * 0.5); |
| 45 |
} |
| 46 |
spawn_delay = spawn_delay_max; |
| 47 |
} |
| 48 |
break; |
| 49 |
case 4: |
| 50 |
sprite_index = spr_battle_enemy_attack_sir_slither_clay_finished; |
| 51 |
image_index = 0; |
| 52 |
cutscene_advance(); |
| 53 |
break; |
| 54 |
case 5: |
| 55 |
if (image_index >= (image_number - 1)) |
| 56 |
{ |
| 57 |
image_speed = 0; |
| 58 |
cutscene_wait(0.5); |
| 59 |
} |
| 60 |
break; |
| 61 |
case 6: |
| 62 |
instance_destroy(obj_battle_enemy_attack_slither_pottery_generator); |
| 63 |
break; |
| 64 |
} |