1 |
var xp = x |
2 |
var yp = y |
3 |
part_emitter_region(global.ps, global.pe_Effect2, (xp - 1), (xp + 1), (yp - 1), (yp + 1), 0, 0) |
4 |
part_emitter_burst(global.ps, global.pe_Effect2, global.pt_Effect2, 1) |
5 |
part_emitter_region(global.ps, global.pe_glass_particles, (xp - 30), (xp + 30), (yp - 30), (yp + 30), 2, 2) |
6 |
part_emitter_burst(global.ps, global.pe_glass_particles, global.pt_glass_particles, 15) |
7 |
image_alpha = 0 |
8 |
image_speed = 0 |
9 |
alarm[1] = 60alarm[1]part_system_clear(global.ps)
instance_destroy() |
10 |
with (obj_ceroba_body_pacifist_phase_2) |
11 |
{ |
12 |
sprite_index = spr_ceroba_p2_knocked_down |
13 |
image_index = 0 |
14 |
image_speed = 1 |
15 |
} |
16 |
with (obj_petal_generator_phase_2) |
17 |
fade_out = true |
18 |
with (obj_heart_battle_fighting_yellow_final) |
19 |
can_shoot = true |
20 |
scr_battle_box_resize_midfightscr_battle_box_resize_midfightfunction scr_battle_box_resize_midfight() //gml_Script_scr_battle_box_resize_midfight
{
if instance_exists(obj_dialogue_box_battle_transformation_any)
{
with (obj_dialogue_box_battle_transformation_any)
{
battle_box_resize_midfight = true
battle_box_target_xscale = argument[0] / sprite_get_width(sprite_index)
battle_box_target_yscale = argument[1] / sprite_get_height(sprite_index)
if (argument_count > 2)
{
battle_box_target_x = argument[2]
battle_box_target_y = argument[3]
}
if (abs(image_xscale - battle_box_target_xscale) < 0.01 && abs(image_yscale - battle_box_target_yscale) < 0.01 && abs(x - battle_box_target_x) < 0.1 && abs(y - battle_box_target_y) < 0.1)
{
var box = obj_dialogue_box_battle_transformation_any
global.attack_surface_width = box.sprite_width - 8
global.attack_surface_height = box.sprite_height - 8
global.attack_surface_x = box.x - global.attack_surface_width * 0.5
global.attack_surface_y = box.y - global.attack_surface_height * 0.5
if surface_exists(global.attack_surface)
global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height)
return true;
}
}
}
else
return false;
} (40, 40) |
21 |
scr_screenshake_battlescr_screenshake_battlefunction scr_screenshake_battle() //gml_Script_scr_screenshake_battle
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
battle_screenshake_duration = argument[0]
battle_screenshake_intensity = argument[1]
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
} (3, 1) |