Home

Awesome

Particle - System

A simplistic particle system wrapper that is designed to make creating particles fun and easy.

Requirements

Quick Guide

// create an instance of our particles
var effect = instance_create_depth(0, 0, depth, obj_Particles);

// change the emitter to go all across the top
effect.set_emitter_size(0, room_width + 128, 0, 0);
// change to line
effect.set_shape(pt_shape_line);
// set the origin to be pointing towards the direction
effect.set_orientation(0, 0);
// change the direction to the left
effect.set_direction(260);
// change the speed to a high valu
effect.set_speed(10, 20);
// mix the colors between white and grey for each particle
effect.set_color_mix(c_white, c_ltgray);
// change the alpha to 0.2
effect.set_alpha(0.2);
// set the life so the particles will go the entire room height
effect.set_life(room_height);
// change the size
effect.set_size(0.01, 0.5);

// stream 8 particles every tick (frame)
effect.stream(8);