1 |
if (y >= 170) |
2 |
{ |
3 |
audio_play_sound(snd_axis_energy_ball_explode, 1, 0) |
4 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (8, 2.5) |
5 |
instance_destroy() |
6 |
} |
7 |
if (place_meeting(x, y, obj_pl) && global.cutscene == false) |
8 |
{ |
9 |
audio_play_sound(snd_axis_energy_ball_explode, 1, 0) |
10 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (8, 2.5) |
11 |
instance_destroy() |
12 |
obj_pl.state = gml_Script_scr_frozen_state |
13 |
global.battle_enemy_name = "energy balls minifight" |
14 |
global.battling_enemy = true |
15 |
global.battling_boss = false |
16 |
global.sound_carry_overworld = true |
17 |
if (room != rm_death_screen) |
18 |
global.current_room_overworld = room_get_name(room) |
19 |
global.battle_start = true |
20 |
if (!instance_exists(obj_heart_initiate_battle_quick)) |
21 |
instance_create(x, y, obj_heart_initiate_battle_quick) |
22 |
} |