1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (place_meeting(x, y, obj_pl) && steam_active && obj_pl.state == gml_Script_scr_normal_state) |
4 |
{ |
5 |
if (collision_counter > 0) |
6 |
collision_counter -= 1 |
7 |
else |
8 |
{ |
9 |
obj_pl.state = gml_Script_scr_frozen_state |
10 |
collision_counter = collision_counter_max |
11 |
global.battle_enemy_name = "steam minifight" |
12 |
global.battling_enemy = true |
13 |
global.battling_boss = false |
14 |
global.sound_carry_overworld = true |
15 |
if (room != rm_death_screen) |
16 |
global.current_room_overworld = room_get_name(room) |
17 |
global.battle_start = true |
18 |
if (!instance_exists(obj_heart_initiate_battle_quick)) |
19 |
instance_create(x, y, obj_heart_initiate_battle_quick) |
20 |
} |
21 |
} |
22 |
else |
23 |
collision_counter = collision_counter_max |
24 |
if (draw_overlay == true) |
25 |
draw_alpha = lerp(draw_alpha, draw_alpha_target, 0.1) |
26 |
else |
27 |
draw_alpha = lerp(draw_alpha, 0, 0.1) |
28 |
depth = 100 |