Page 1 of 1
Particle Question
Posted: Sun Jan 31, 2010 9:34 pm
by Last Known Hero
From what I know a few of you are using Unity or learning it. I myself am one of those people. I had a question about particle emission, I want it so when a gun is fired that it only emits the particles for a certain amount of time, like 1 second or something, instead of always emitting. Any ideas on how to do this?
Re: Particle Question
Posted: Mon Feb 01, 2010 2:31 pm
by SpiritWebb
In the particle system, there is an option for one shot. If checked, it will only fire one burst, thats it. (Like a gun shot). To make it go away faster, (not sitting in front of it) but the min & max energy state how long in
seconds the particle(s) will last. You will also want to make sure the
emitter,
animator and
renderer attached to whatever you want the particle system to be a part of.
You can also visit Unity 3D site on Particle systems:
Unity - Particle Systems
Re: Particle Question
Posted: Mon Feb 01, 2010 5:15 pm
by Last Known Hero
I spent a few hours looking into it
From what I found out I will have to use a script that sets particles as true as it shoots then turns it to false at the end.
Will keep you guys posted, stil getting used to this scripting thing, trying to make a 3rd person camera/movement system right now.
Re: Particle Question
Posted: Mon Feb 01, 2010 5:18 pm
by SpiritWebb
Last Known Hero wrote:I spent a few hours looking into it
From what I found out I will have to use a script that sets particles as true as it shoots then turns it to false at the end.
Will keep you guys posted, stil getting used to this scripting thing, trying to make a 3rd person camera/movement system right now.
I have one at home that I use, if your interested I will share it with you!!

It has 3rd person view with Orbiting and zooming. (The mouse while holding the right mouse button with rotate the cam around the character, where the left mouse button interacts with things. WASD are the movement keys and the camera stays behind.)
Re: Particle Question
Posted: Mon Feb 01, 2010 6:05 pm
by Last Known Hero
Wow that is exactly the camera system that I wanted to get running, if you could share it that would be awesome

Re: Particle Question
Posted: Mon Feb 01, 2010 6:35 pm
by D3luxe
I know they have a WoW-type control scheme on the Unity forums that you could use, if you were interested. Sounds like the same type of thing Spirit has.
Re: Particle Question
Posted: Mon Feb 01, 2010 9:50 pm
by SpiritWebb
I looked up the WoW thing, and didn't care for it...but I will be more then willing to share the code!

Re: Particle Question
Posted: Tue Feb 02, 2010 12:01 am
by Last Known Hero
I looked up the WoW thing too, i made a new script inside of unity and pasted it into it and when i went to apply it it told me that I need to compile to fix the errors or something like that..
Re: Particle Question
Posted: Tue Feb 02, 2010 12:34 am
by D3luxe
Last Known Hero wrote:I looked up the WoW thing too, i made a new script inside of unity and pasted it into it and when i went to apply it it told me that I need to compile to fix the errors or something like that..
Eh, you must have mis-assigned the scripts or something. You made new javascripts, right?
It took a second for me to get it working right, cause I had to figure out the hierarchy for the objects ingame, but I can attest that it definitely does work. Not the greatest script, but it was a nice starting point for me.
Mind making a post to share yours, spirit? I'm interested in it

Re: Particle Question
Posted: Tue Feb 02, 2010 3:04 pm
by SpiritWebb
I will post it and share it...I have no problem.