Scripted x eller y akse rotation
how ?jeg fandt et script men det er ikke den vej jeg vil have det )rotationen skal være horisontal:
onClipEvent (load) {
var bln
intRotationSpeed = Math.round(20 * Math.random())-10;
blnCalcNewSpeed = true;
}
onClipEvent (enterFrame) {
if (blnCalcNewSpeed) {
intNewRotationSpeed = Math.round(20 * Math.random())-10;
blnCalcNewSpeed = false;
}
intRandom = Math.round(10 * Math.random());
if (intRandom == 1 && intNewRotationSpeed == intRotationSpeed) {
blnCalcNewSpeed = true;
}
if (intRotationSpeed > intNewRotationSpeed) {
intRotationSpeed--;
} else {
intRotationSpeed++;
}
this._rotation += intRotationSpeed;
}
