Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_part_steamworks_lava_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
global.ps = part_system_create();
4
part_system_depth(global.ps, -9999);
5
var part_life = (room_height + 100) / 0.8;
6
var part_dist = (room_width * room_height) / 29257.14;
7
global.pt_Lava_Particles = part_type_create();
8
part_type_shape(global.pt_Lava_Particles, 8);
9
part_type_size(global.pt_Lava_Particles, 0.05, 0.075, 0, 0);
10
part_type_scale(global.pt_Lava_Particles, 1, 1);
11
part_type_orientation(global.pt_Lava_Particles, 0, 0, 0, 0, 0);
12
part_type_color3(global.pt_Lava_Particles, 16751615, 16777215, 16770808);
13
part_type_alpha3(global.pt_Lava_Particles, 0.7, 0.7, 0);
14
part_type_blend(global.pt_Lava_Particles, 0);
15
part_type_life(global.pt_Lava_Particles, part_life * 0.75, part_life);
16
part_type_speed(global.pt_Lava_Particles, 0.7, 0.9, 0, 0);
17
part_type_direction(global.pt_Lava_Particles, 82, 97, 0, 0);
18
part_type_gravity(global.pt_Lava_Particles, 0, 0);
19
global.pe_Lava_Particles = part_emitter_create(global.ps);
20
var xp = x;
21
var yp = room_height;
22
part_emitter_region(global.ps, global.pe_Lava_Particles, 0, room_width, 0, room_height, 0, 0);
23
part_emitter_burst(global.ps, global.pe_Lava_Particles, global.pt_Lava_Particles, part_dist);
24
part_emitter_region(global.ps, global.pe_Lava_Particles, 0, room_width, yp - 1, yp - 1, 3, 0);
25
part_emitter_stream(global.ps, global.pe_Lava_Particles, global.pt_Lava_Particles, -(room_width / 18.82));