x


jet particle on/off

hello, i have a jet thruster particle for my spaceship and the particle continuously plays and i want the particle to appear and disapear when i press W here is what i have,

if(Input.GetButtonDown("Vertical"))

{

    particleEmitter.enabled = true;

}



if(Input.GetButtonUp("Vertical"))

{

    particleEmitter.enabled = false;
}
more ▼

asked Aug 14 '10 at 07:39 PM

potatum gravatar image

potatum
12 3 3 7

the problem is solved, i figured it out

Aug 14 '10 at 09:00 PM potatum

i'd change that to .emit, it's a nice effect and the whole thing won't disappear.

Aug 14 '10 at 09:37 PM Fishman92
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5275
x3570
x659

asked: Aug 14 '10 at 07:39 PM

Seen: 1267 times

Last Updated: Aug 14 '10 at 10:30 PM