BirdMan
August 7th, 2004, 08:58 PM
i was doing a bluesfear tutorial on motion and there was this code that wasnt even in the list of scripts?
waht does accelflag mean?
onClipEvent (enterFrame) {
if (this._rotation == 0) {
rotateIncrement = .1;
}
if (rotateIncrement<=1) {
accelFlag = 1;
}
if (rotateIncrement>30) {
accelFlag = 0;
}
if (accelFlag == 1) {
rotateIncrement = rotateIncrement*1.1;
}
if (accelFlag == 0) {
rotateIncrement = .1;
}
this._rotation += rotateIncrement;
}
how did he get it to work with a code that is not even in the list?
waht does accelflag mean?
onClipEvent (enterFrame) {
if (this._rotation == 0) {
rotateIncrement = .1;
}
if (rotateIncrement<=1) {
accelFlag = 1;
}
if (rotateIncrement>30) {
accelFlag = 0;
}
if (accelFlag == 1) {
rotateIncrement = rotateIncrement*1.1;
}
if (accelFlag == 0) {
rotateIncrement = .1;
}
this._rotation += rotateIncrement;
}
how did he get it to work with a code that is not even in the list?