1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

GM:S 1.4 Using a single particle system for all emitting objects

Discussion in 'Programming' started by PWL, Sep 28, 2016.

  1. PWL

    PWL Member

    Joined:
    Jun 21, 2016
    Posts:
    28
    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?
     

Share This Page