기초 플래시 강좌 - 액션 스크립트2

· 21년 전 · 2046
[기타] 기초 플래시 강좌 - 액션 스크립트 에서 배운 내용을 약간 응용해봅시다.
이번엔 대각선 방향으로 움직이게 해봅시다.

_root.l_u_b.onRelease=function(){
_root.ggamagi._x-=10;
_root.ggamagi._y-=10;
_root.ggamagi._rotation=300;

}
_root.r_u_d.onRelease=function(){
_root.ggamagi._x+=10;
_root.ggamagi._y-=10;
_root.ggamagi._rotation=60;

}
_root.l_d_b.onRelease=function(){
_root.ggamagi._x-=10;
_root.ggamagi._y+=10;
_root.ggamagi._rotation=210;
}
_root.r_d_b.onRelease=function(){
_root.ggamagi._x+=10;
_root.ggamagi._y+=10;
_root.ggamagi._rotation=120;
}

첨부파일

위치제어문제.fla (16.5 KB) 10회 2004-06-24 10:23
|

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고