![]() |
|
||||||||||
|
|||||
|
Регистрация: Oct 2006
Адрес: spb.ru
Сообщений: 3,221
|
Цитата:
|
|
|||||
|
меценат
|
а вот цеплятся неприлично ... вот =)
"ПЛЕННЫХ НЕБРАТЬ =)" The Game ![]() А вообще если кому интересно то код для оного обьекта будет таким : border_rotation = 0;
Time_move = -0.01;
Control_turn = 1;
to_speed_up_turn = 0;
this.createEmptyMovieClip("mc", 1);
with (this.mc) {
lineStyle(2, 0x000000, 100);
beginFill(0x6633CC);
moveTo(-5, -5);
lineTo(-5, -5);
lineTo(5, -5);
lineTo(5, 5);
lineTo(-5, 5);
endFill();
}
this.mc._x = 275;
this.mc._y = 200;
this.mc._rotation = -90;
this.mc.onEnterFrame = function() {
with (this) {
Time_move += 0.1;
if (Control_turn == 1) {
if (Time_move>=border_rotation) {
border_rotation = int(Math.random()*4);
Time_move = 0;
}
if (to_speed_up_turn<border_rotation) {
to_speed_up_turn += 0.5;
}
if (to_speed_up_turn>border_rotation) {
to_speed_up_turn -= 0.5;
}
_rotation += (to_speed_up_turn*2);
if (border_rotation == 2) {
Control_turn = 2;
}
}
//
if (Control_turn == 2) {
if (Time_move>=border_rotation) {
border_rotation = int(Math.random()*4);
Time_move = 0;
}
if (to_speed_up_turn<border_rotation) {
to_speed_up_turn += 0.5;
}
if (to_speed_up_turn>border_rotation) {
to_speed_up_turn -= 0.5;
}
_rotation -= (to_speed_up_turn*2);
if (border_rotation == 1) {
Control_turn = 1;
}
}
_y += 4*Math.sin(this._rotation*(Math.PI/180));
_x += 4*Math.cos(this._rotation*(Math.PI/180));
////////////////////////////
if (_x<0) {
_x = 550;
}
if (_x>550) {
_x = 0;
}
if (_y<0) {
_y = 400;
}
if (_y>400) {
_y = 0;
}
}
};
__________________
Безвыходных положений небывает © Барон Мюнхаузен=)Исходники |
|
|||||
|
Регистрация: Oct 2006
Адрес: spb.ru
Сообщений: 3,221
|
Цитата:
![]() |
|
|||||
|
Регистрация: Oct 2006
Адрес: spb.ru
Сообщений: 3,221
|
Цитата:
Какой-какой говорите у вас адрес? |
![]() |
![]() |
Часовой пояс GMT +4, время: 01:42. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|