Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mansion_trapdoor_particles_Create_0

(view raw script w/o annotations or w/e)
1
global.ps = part_system_create()
2
part_system_depth(global.ps, -1)
3
global.pt_pt_dust = part_type_create()
4
part_type_shape(global.pt_pt_dust, 0)
5
part_type_size(global.pt_pt_dust, 1, 2, 0, 0)
6
part_type_scale(global.pt_pt_dust, 1, 1)
7
part_type_orientation(global.pt_pt_dust, 0, 0, 0, 0, 0)
8
part_type_color3(global.pt_pt_dust, 16777215, 16777215, 16777215)
9
part_type_alpha3(global.pt_pt_dust, 0.1, 1, 0)
10
part_type_blend(global.pt_pt_dust, 0)
11
part_type_life(global.pt_pt_dust, 60, 60)
12
part_type_speed(global.pt_pt_dust, 1, 1, 0, 0)
13
part_type_direction(global.pt_pt_dust, 40, 140, 0, 5)
14
part_type_gravity(global.pt_pt_dust, 0, 0)
15
global.pe_pt_dust = part_emitter_create(global.ps)
16
var xp = x
17
var yp = y
18
part_emitter_region(global.ps, global.pe_pt_dust, (xp - 30), (xp + 30), (yp - 30), (yp + 30), 0, 0)
19
part_emitter_burst(global.ps, global.pe_pt_dust, global.pt_pt_dust, 14)
20
alarm[0] = 90
alarm[0]

instance_destroy()