Показать сообщение отдельно
Старый 20.07.2007, 17:43
J0x вне форума Посмотреть профиль Отправить личное сообщение для J0x Посетить домашнюю страницу J0x Найти все сообщения от J0x
  № 34  
Ответить с цитированием
J0x
 
Аватар для J0x

Регистрация: Jul 2007
Сообщений: 2
Отправить сообщение для J0x с помощью ICQ
попробовал так, тоже не получается:

Код:
//функция 1: движение starship
function movieShip(starship, step) {
     if (Key.isDown(Key.DOWN)) {
          starship._y = _root.starship._y+step;
          starship._rotation=starship._rotation+stepRptation;
     }
     if (Key.isDown(Key.UP)) {
          starship._y = _root.starship._y-step;
          starship._rotation=starship._rotation-stepRptation;
     }
}

//интервал rotation
createRotataoinInt = setInterval(createRotataoin, 0);
stepRptation = 3;
minRotataoin = -300;
maxRotataoin = 60;
function createRotataoin(minRotataoin, maxRotataoin){
     if((starship._rotation=starship.minRotataoin)||(starship._rotation=starship.maxRotataoin)){
          stepRptation = 0;
     }
}