1 |
image_speed = 0 |
2 |
image_index = 0 |
3 |
image_xscale = 2 |
4 |
image_yscale = 2 |
5 |
scene = 0 |
6 |
cutscene_timer = 0 |
7 |
can_shake = true |
8 |
alarm[0] = 2alarm[0]if (can_shake == true)
{
x = xstart + (irandom_range(-1, 1))
y = ystart + (irandom_range(-1, 1))
alarm[0] = shake_timer
}
else
{
x = xstart
y = ystart
} |
9 |
shake_timer = 2 |
10 |
with (obj_battle_enemy_attack_ceroba_phase_2_attack_spawner) |
11 |
{ |
12 |
event_user(0) |
13 |
instance_destroy(obj_battle_ceroba_phase_1_transformation, false) |
14 |
} |
15 |
audio_play_sound(snd_ceroba_shield_break_1, 1, 0) |
16 |
global.ps = part_system_create() |
17 |
part_system_depth(global.ps, -1) |
18 |
global.pt_glass_particles = part_type_create() |
19 |
part_type_shape(global.pt_glass_particles, 0) |
20 |
part_type_sprite(global.pt_glass_particles, 821, 0, 0, 0) |
21 |
part_type_size(global.pt_glass_particles, 1, 1, 0, 0) |
22 |
part_type_scale(global.pt_glass_particles, 1, 1) |
23 |
part_type_orientation(global.pt_glass_particles, 0, 359, 0, 0, 0) |
24 |
part_type_color3(global.pt_glass_particles, 5701887, 5701887, 15128575) |
25 |
part_type_alpha3(global.pt_glass_particles, 1, 0.5, 0) |
26 |
part_type_blend(global.pt_glass_particles, 0) |
27 |
part_type_life(global.pt_glass_particles, 25, 25) |
28 |
part_type_speed(global.pt_glass_particles, 4, 4, 0, 0) |
29 |
part_type_direction(global.pt_glass_particles, 45, 135, 0, 0) |
30 |
part_type_gravity(global.pt_glass_particles, 0.3, 270) |
31 |
global.pt_Effect2 = part_type_create() |
32 |
part_type_shape(global.pt_Effect2, 5) |
33 |
part_type_size(global.pt_Effect2, 0, 0, 0.4, 0) |
34 |
part_type_scale(global.pt_Effect2, 1, 1) |
35 |
part_type_orientation(global.pt_Effect2, 0, 0, 0, 0, 0) |
36 |
part_type_color3(global.pt_Effect2, 5701887, 5701887, 5701887) |
37 |
part_type_alpha3(global.pt_Effect2, 0.8, 0.4, 0) |
38 |
part_type_blend(global.pt_Effect2, 1) |
39 |
part_type_life(global.pt_Effect2, 20, 20) |
40 |
part_type_speed(global.pt_Effect2, 0, 0, 0, 0) |
41 |
part_type_direction(global.pt_Effect2, 0, 360, 0, 0) |
42 |
part_type_gravity(global.pt_Effect2, 0, 0) |
43 |
global.pe_glass_particles = part_emitter_create(global.ps) |
44 |
global.pe_Effect2 = part_emitter_create(global.ps) |