Results 1 to 10 of 10

Thread: Flash Particle Emitters

  1. #1
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash Particle Emitters

    I need to make a particle emitter similar to this one here but don't really know what to do... where to start etc..

    it doesn't need to have the lines after it though they would be nice

    i know some actionscript but not alot, ive tried de constructing it with swf quicker, but there are 2 pieces of code missing..

    what i've got so far is, there are 2 bits each is a graphic in a movie clip in a movie clip ive got the code from swf quicker for each inside movie clip, but the outer ones it wont give me the code for.

    any help would be appreciated

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Start:

    here

    Then..

    understand particles get the particle engine from this zip file

    and then learn how to pen and mask and you will be set.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks blizzard ill give it a go

  4. #4
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    they have kinda helped... but i dont know which bit is the particle engine in the 2nd link... i think its this.. but could someone help please

    function createParticle(x, y, angle, power) {
    // create new object
    var particle = new Object();
    // assign position values
    particle.x =x;
    particle.y =y;
    particle._initTime = getTimer();
    particle.exploded = false;
    particle.fArr = new Array();
    // develop a random angle based on angle passed and the
    // available spread defined earlier
    angle = -angle;
    // generate a random power value
    power = -power/2+power+power;
    // create vx and vy variables for
    // movement using angle and power
    particle.vx = Math.cos(angle)*power;
    particle.vy = -Math.sin(angle)*power;
    // return particle object
    return particle;


    ??

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    That would be an engine to create particles, yes
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanking you

  7. #7
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok ive got it working, one last problem... what code would i need to be changing to make the paricles move slower?

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    the "power" variable holds the speed(it appears) you can do other math (or remove the second +power) for the speed.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #9
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    just thought if you were interested, you can see the end result here

  10. #10
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    That looks awesome! I like how washing makes you awake and cheerful, but getting dressed puts you asleep and depressed, LOL. I know the feeling.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •