Particle Question

General Discussion on the Unity Engine.
Post Reply
User avatar
Last Known Hero
Posts: 807
Joined: Wed Aug 26, 2009 12:28 am

Particle Question

Post 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?
Image
Power3DArt

-Current Project: Fault [Pre-Alpha]
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Particle Question

Post 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
Image

Image
User avatar
Last Known Hero
Posts: 807
Joined: Wed Aug 26, 2009 12:28 am

Re: Particle Question

Post by Last Known Hero »

I spent a few hours looking into it :lol:
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.
Image
Power3DArt

-Current Project: Fault [Pre-Alpha]
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Particle Question

Post by SpiritWebb »

Last Known Hero wrote:I spent a few hours looking into it :lol:
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.)
Image

Image
User avatar
Last Known Hero
Posts: 807
Joined: Wed Aug 26, 2009 12:28 am

Re: Particle Question

Post 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 :D
Image
Power3DArt

-Current Project: Fault [Pre-Alpha]
D3luxe
Posts: 355
Joined: Sat Sep 05, 2009 3:11 pm

Re: Particle Question

Post 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.
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Particle Question

Post 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! :)
Image

Image
User avatar
Last Known Hero
Posts: 807
Joined: Wed Aug 26, 2009 12:28 am

Re: Particle Question

Post 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..
Image
Power3DArt

-Current Project: Fault [Pre-Alpha]
D3luxe
Posts: 355
Joined: Sat Sep 05, 2009 3:11 pm

Re: Particle Question

Post 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 :)
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Particle Question

Post by SpiritWebb »

I will post it and share it...I have no problem.
Image

Image
Post Reply

Return to “General Unity”