Показать сообщение отдельно
Старый 24.11.2010, 10:14
Leonard вне форума Посмотреть профиль Отправить личное сообщение для Leonard Найти все сообщения от Leonard
  № 2  
Ответить с цитированием
Leonard

Регистрация: Oct 2010
Сообщений: 12
Код AS1/AS2:
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;
	}
 
}
}


Последний раз редактировалось Leonard; 24.11.2010 в 10:19.