How to destroy Particles

ashvashv Member Posts: 3

Hey guys,

I need help to destroy the particles after they have been touched. The particles are coming off from another actor, like from a bin. Any help will be really helpful.

Thanks

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    When you say 'destroy particles' what do you mean exactly?

    1. you want another actor to interact with them, like shoot them or something?
    2. you just want to turn the particles off and make them go away?
  • ashvashv Member Posts: 3

    I want the particles to disappear when you press them. I have been able to make the actor which i am using as the particle to disappear when touched, but not the particles

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You can't interact with particles like that... once spawned on screen they are just 'scenery'.

    If you want the kind of interaction you describe you need to not use the Particles Behavior and need to build your own spawner that spawns actual actors you can then interact with.

  • ashvashv Member Posts: 3

    Thanks for the help Jamie

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome. Let me know if you have any other questions.

  • Thunder_ChildThunder_Child Member Posts: 2,343
    edited July 2014

    @ashv‌
    @jamie_c‌

    Hey sirs....I used to make "debris" with particles....I now make an actor called "debris"....move in random (1,359) that are spawned when my bullet collides with bad guys. If you do this you now can have attributes such as "when touched"...destroy debris. This is pretty easy to do.

    Outside the box :-)

  • SocksSocks London, UK.Member Posts: 12,822
    edited July 2014

    @Thunder_Child said:
    Hey sir....I used to make "debris" with particles....I now make an actor called "debris"....move in random (1,359) that are spawned when my bullet collides with bad guys. If you do this you now can have attributes such as "when touched"...destroy debris. This is pretty easy to do.

    [angle pedant]

    (1,359)

    Using only 1° to 359° misses out slightly less than 2 degrees !

    [/angle pedant]

    :smile:

  • Thunder_ChildThunder_Child Member Posts: 2,343

    @Socks‌

    Hmmm....Yes. That whole angle pendant thing. :p

    I once saw in a tutorial to put those values. I never questioned it. For some reason I thought 0 and 360 was really the same value. No?

  • SocksSocks London, UK.Member Posts: 12,822

    @Thunder_Child said:
    Socks‌

    Hmmm....Yes. That whole angle pendant thing. :p

    Lol, I like getting myself involved in things that ultimately don't matter :blush: :smiley:

    @Thunder_Child said:
    I once saw in a tutorial to put those values. I never questioned it. For some reason I thought 0 and 360 was really the same value. No?

    Yes, like you say, 0° and 360° are the same value (the object is 'pointed' perfectly right).

    As the random function only produces whole numbers (unless you force it to do otherwise) you should, ideally, use something that covers the whole range of angles (if you want the whole range of angles), so 1°-360° or 0°-359°.

    But ultimately if you use 1°-359° no one will notice :)

  • Thunder_ChildThunder_Child Member Posts: 2,343
    edited July 2014

    @Socks‌ "No one will notice"

    My OCD WILL NOTICE.... It's always noticing things. :p omg I have to change all my games now. Lol. JK.

    Btw no fair...I can't make cute little degree symbols....

  • SocksSocks London, UK.Member Posts: 12,822

    @Thunder_Child said:
    Btw no fair...I can't make cute little degree symbols....

    OSX: shift + alt + 8 = °

    :)

  • Thunder_ChildThunder_Child Member Posts: 2,343

    Sawheeeeet! I would have to be on mobile right now. Foiled again !

Sign In or Register to comment.