particles per second

  • ubuntupokemoninc
    10th Mar 2011 Member 0 Permalink
    I was wondering is it possible to specify how fast a particle is made, lets say i had an element that made a new particle every 5 seconds, is that possible? how would i wright that code for &update.c?
    sorry, I hope it doesn't look like i'm asking to be spoon fed information.
  • Cr15py
    10th Mar 2011 Member 0 Permalink
    ubuntupokemoninc
    Just decrement a count for every frame, at zero release the particle.
  • ubuntupokemoninc
    10th Mar 2011 Member 0 Permalink
    how to i code that though?
  • PizzaPlatypus
    10th Mar 2011 Member 0 Permalink
    @ubuntupokemoninc
    use before the create bit
    if(1>rand()%100)
    {
    (create bit here)
    }
    the higher the number after percent the less frequent it is
  • devast8a
    10th Mar 2011 Former Staff 0 Permalink
    @PizzaPlatypus
    That's not really what he's asking for.

    @ubuntupokemoninc
    something like

    x--;
    if( x == 0 ){
    x=300;
    create_part;
    }

    Would mean that at 60fps it will create a particle every 5 seconds.
  • snowfire777
    10th Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • ubuntupokemoninc
    10th Mar 2011 Member 0 Permalink
    cool i'm gonna create AC pulses spark every so many seconds, now instead of using metal to delay spark, we can accurately time it!
  • snowfire777
    10th Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned