destroy actor but leave particles

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
my actor spawns particles when hit but i have a destroy actor so non of the particles show up unless i remove the destroy actor, anyway of destroying that actor but leaving particles.
thanks
paul

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    likely you will need to move an invisible actor to your main actors position when hit. Destroy the main actor but set the particles to come from the invisible actor and a timer to move it back off scene.

    OR if it doesn't mess your game play .. change the Alpha of your main actor to zero on hit and set the destroy in a timer so the particles have time to play out.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Turn the opacity to 0 instead of destroying the actor and it will still spew out particles.
  • gamedivisiongamedivision Member Posts: 807
    tried that but when i,m still throwing an actor up in the air to collect the stars the stars still keep spawning from nowhere,is there no other way of doing it
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Okay, I'm a little confused. Isn't that what you wanted?
  • bluebyu25bluebyu25 Member Posts: 500


    This is the best way. No spawning or destroying.....saves a TON on game performance.
  • gamedivisiongamedivision Member Posts: 807
    recycle wouldn't work for me as im firing actors at stars to collect them and then the stars spawn a particle explosion abit like mario when he collects coins you have an animation that plays when you collect them
  • gamedivisiongamedivision Member Posts: 807
    i have created a particle explosion jpeg seq,but when i use when actor overlaps animate my seq but it takes on the size of the actor the jpeg seq spawning from
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You can adjust the size of the particles under the "Size" tab in the particle emitter, if that's what you mean.

    If I'm understanding you correctly, you need to spawn an invisible actor from the star, when the star gets destroyed. And in that invisible actor, have the particles emit from there, and add a timer that says after a second or two, destroy that invisible actor...Or move it off screen for recycling.
  • gamedivisiongamedivision Member Posts: 807
    yeah i understand that,i mean i created a particle jpeg seq in particle illusion and wanted to play that seq but when you use the animation behavior inside another actor it doesnt matter what size that animation is it will only play that animation the same size of that actor
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Okay, I think I got what you mean. I don't know particle illusion, I know of it, but I never used it. If you are able to use the sequence that is generated by itself as an actor, you won't need to use another actor to particle emit it, you should just be able to swap it out and let it play alone.

    And if you do need another actor to spawn it, you can change the actor size in the inspector window on the left. Just double click the actor you need to change size on, and in the attributes pane you can change the size, etc.

    I Hope that's what you meant.
Sign In or Register to comment.