Legacy GM Using a single particle system for all emitting objects

P

PWL

Guest
I'm having several spots (let's say obj_spot) that I will emitt particles from. Like a floating ball of a certain color. This color property is called "color" within these objects. They will vary, that's the point.

I would really like to write one code (in ex. obj_particle_handler) that handles all of the particle emitters instead of creating one emitter or even particle system for each of the obj_spots.

How would I best loop through the position of all the obj_spots and emitt particles from obj_spot's in a color of its color-property? Especially how will I handle the unique color for each one?
 
Top