How would you write
if (somevariable == 1 **or** 3) {
sp._yscale += 10; //any old code, doesn't matter
sp._x -= 15;
sp._y -= 5;
sp._alpha -= 8;
}
So far, all I can think of is to just make the if statment twice.
if (somevariable == 1 ) {
sp._yscale += 10; //any old code, doesn't matter
sp._x -= 15;
sp._y -= 5;
sp._alpha -= 8;
}
if (somevariable == 3 ) {
sp._yscale += 10; //any old code, doesn't matter
sp._x -= 15;
sp._y -= 5;
sp._alpha -= 8;
}
Peace out