Particle Question

BlackbirdStudiosBlackbirdStudios Member Posts: 493
edited November -1 in Working with GS (Mac)
Hey guys, quick particle question:

I have an actor that is shooting out small particles in all directions. I want it to be so that when the main actor that you are controlling overlaps the particles, they disappear. Something smoother than just destroying the actor.

So I have created an attribute. self.particlenumber. So it is set on 400 in the actor. Then I said actor receives event when overlaps or collides with actor of type "maincharacter." And then I set it to change self.particlenumber to 0 when that happens.

Any idea why that is not working???

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Particle number is the maximum amount of particles possible on screen, but I think changing it to zero won't take away particles, it will just stop spawning them. I'd suggest changing the alpha channel in the particles, to make them invisible. Try that, and see if it works.
  • BlackbirdStudiosBlackbirdStudios Member Posts: 493
    Asymptoteell said:
    Particle number is the maximum amount of particles possible on screen, but I think changing it to zero won't take away particles, it will just stop spawning them. I'd suggest changing the alpha channel in the particles, to make them invisible. Try that, and see if it works.

    You can't do that because the alpha channel affects the actor, not the particles themselves.
  • BlackbirdStudiosBlackbirdStudios Member Posts: 493
    I figured out a fix. I set an attribute for the actor called self.alpha change duration. It is originally set for 4 (seconds) and when the main actor overlaps, it is set to zero. That'll work

    Thanks for everyone's help,

    Matt
Sign In or Register to comment.