1 |
part_smokesys_back = part_system_create(); |
2 |
part_smokesys_front = part_system_create(); |
3 |
part_smokeEm_back = part_emitter_create(part_smokesys_back); |
4 |
part_smokeEm_front = part_emitter_create(part_smokesys_front); |
5 |
part_system_depth(part_smokesys_back, 0); |
6 |
part_system_depth(part_smokesys_front, -room_height); |
7 |
part_smoke = part_type_create(); |
8 |
part_type_sprite(part_smoke, 665, 0, 1, 0); |
9 |
part_type_size(part_smoke, 0.25, 0.25, 0.02, 0); |
10 |
part_type_colour2(part_smoke, 16777215, 16777215); |
11 |
part_type_alpha2(part_smoke, 1, 0); |
12 |
part_type_speed(part_smoke, 1, 1, -0.001, 0); |
13 |
part_type_direction(part_smoke, 90, 90, 0, 3); |
14 |
part_type_orientation(part_smoke, 0, 359, random_range(-2, 2), 0.1, 1); |
15 |
part_type_life(part_smoke, 25, 25); |
16 |
part_type_blend(part_smoke, 1); |
17 |
alarm[0] = 2;gml_Object_part_steamworks_steam_controller_Alarm_0.gmlwith (obj_steamworks_steam_blaster)
{
if (steam_active)
{
if (obj_pl.y > y)
{
part_emitter_region(other.part_smokesys_back, other.part_smokeEm_back, x + 10, x + 10, y + 10, y + 10, 2, 1);
part_emitter_burst(other.part_smokesys_back, other.part_smokeEm_back, other.part_smoke, -1);
}
else
{
part_emitter_region(other.part_smokesys_front, other.part_smokeEm_front, x + 10, x + 10, y + 10, y + 10, 2, 1);
part_emitter_burst(other.part_smokesys_front, other.part_smokeEm_front, other.part_smoke, -1);
}
}
}
alarm[0] = 2; |