| 1 |
script_execute(scr_controls_text); |
| 2 |
var message_adv = false; |
| 3 |
if (egg_eat == true) |
| 4 |
{ |
| 5 |
if (instance_exists(obj_sousborg_perfectly_edible_egg)) |
| 6 |
{ |
| 7 |
with (obj_sousborg_perfectly_edible_egg) |
| 8 |
{ |
| 9 |
var target_y = obj_sousborg_body_a.y - 85; |
| 10 |
image_angle += 15; |
| 11 |
image_xscale = abs(y - target_y) / abs(ystart - target_y); |
| 12 |
image_yscale = image_xscale; |
| 13 |
if (abs(y - target_y) > 0.1) |
| 14 |
{ |
| 15 |
y = lerp(y, target_y, 0.15); |
| 16 |
exit; |
| 17 |
} |
| 18 |
else |
| 19 |
{ |
| 20 |
message_adv = true; |
| 21 |
instance_destroy(obj_sousborg_perfectly_edible_egg); |
| 22 |
} |
| 23 |
} |
| 24 |
} |
| 25 |
} |
| 26 |
if (key_revert_pressed) |
| 27 |
{ |
| 28 |
characters = message_length; |
| 29 |
message_draw = string_copy(message[message_current], 0, characters); |
| 30 |
if (color_count >= 1) |
| 31 |
message_draw_2 = string_copy(message_2[message_current], 0, characters); |
| 32 |
} |
| 33 |
if (characters < message_length) |
| 34 |
{ |
| 35 |
if (counter == 0) |
| 36 |
{ |
| 37 |
if (color_count >= 1) |
| 38 |
{ |
| 39 |
script_execute(scr_text_increase_color); |
| 40 |
script_execute(scr_talking_enemy_color); |
| 41 |
} |
| 42 |
else |
| 43 |
{ |
| 44 |
script_execute(scr_text_increase); |
| 45 |
script_execute(scr_talking_enemy); |
| 46 |
} |
| 47 |
} |
| 48 |
else |
| 49 |
{ |
| 50 |
can_talk = false; |
| 51 |
} |
| 52 |
} |
| 53 |
else |
| 54 |
{ |
| 55 |
can_talk = false; |
| 56 |
if (key_select_pressed) |
| 57 |
{ |
| 58 |
if (message_current == 1) |
| 59 |
{ |
| 60 |
egg_eat = true; |
| 61 |
} |
| 62 |
else if (message_current < message_end) |
| 63 |
{ |
| 64 |
message_adv = true; |
| 65 |
} |
| 66 |
else |
| 67 |
{ |
| 68 |
instance_activate_object(obj_heart_battle_menu_act); |
| 69 |
with (obj_quote_bubble_battle) |
| 70 |
instance_destroy(); |
| 71 |
global.enemy_sparing = true; |
| 72 |
instance_destroy(); |
| 73 |
instance_destroy(obj_battle_enemy_attack_sousborg_season_generator); |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
if (message_adv == true) |
| 78 |
{ |
| 79 |
message_current += 1; |
| 80 |
message_length = string_length(message[message_current]); |
| 81 |
characters = 0; |
| 82 |
message_draw = ""; |
| 83 |
if (color_count >= 1) |
| 84 |
message_draw_2 = ""; |
| 85 |
} |
| 86 |
if (color_count >= 1) |
| 87 |
script_execute(scr_text_counter_color); |
| 88 |
else |
| 89 |
script_execute(scr_text_counter); |