Просмотр полной версии : Analog meter (random rotation)
Прошу помощи в реализации скрипта, который бы заставил свободно дергаться стрелочку (movie clip), в аналоговом метре.
Many Thanks!
onClipEvent(load){
x = 0;
}
onClipEvent(enterFrame){
trace(this._rotation);
if(x == 0){
this._rotation += 1 + Math.random()*10;
if(this._rotation > Math.random()*70){
trace(x);
x = 1;
}
}
if(x == 1){
this._rotation -= 1 + Math.random()*10;
if(this._rotation < -Math.random()*70){
trace(x);
x = 0;
}
}
}
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.