ok, thank you in advanced for taking the time to help me out. here’s my code:
var leftflame: ParticleSystem;
var rightflame: ParticleSystem;
var centerflame: ParticleSystem;
function Start ()
{
}
function Update ()
{
if (Input.GetAxis("Horizontal")==0);
{
leftflame.particleSystem.enableEmission = false;
rightflame.particleSystem.enableEmission=false;
centerflame.particleSystem.enableEmission=false;
}
if (Input.GetAxis("Horizontal")>0);
{
leftflame.particleSystem.enableEmission=true;
rightflame.particleSystem.enableEmission=false;
centerflame.particleSystem.enableEmission=false;
}
}
my current problem is i get this error:
Assets/Ship.js(15,57): BCE0044: expecting :, found ‘=’.
not sure what the problem is i changed the = to a : but then i get numerous other errors i had it working without the {} in my functions but that just made the Particle System stay on. any idea what I’m doing wrong?