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.
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
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.
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.
@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 !
Lol, I like getting myself involved in things that ultimately don't matter
@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
Comments
When you say 'destroy particles' what do you mean exactly?
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
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.
Thanks for the help Jamie
You're welcome. Let me know if you have any other questions.
@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 :-)
[angle pedant]
(1,359)
Using only 1° to 359° misses out slightly less than 2 degrees !
[/angle pedant]
@Socks
Hmmm....Yes. That whole angle pendant thing.
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?
Lol, I like getting myself involved in things that ultimately don't matter

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
@Socks "No one will notice"
My OCD WILL NOTICE.... It's always noticing things.
omg I have to change all my games now. Lol. JK.
Btw no fair...I can't make cute little degree symbols....
OSX: shift + alt + 8 = °
Sawheeeeet! I would have to be on mobile right now. Foiled again !