as3.0 미로게임 재미로 만들고 있습니다만.. > 유머 채널

본문 바로가기

as3.0 미로게임 재미로 만들고 있습니다만..

본문

계속 에러가 뜨네요

시작버튼액션(1프레임)
function start(e)
{
 nextFrame();
}
start.addEventListener(MouseEvent.CLICK,start);
var speed:Number = 5;
function up(f)
{
 man.y -=  speed;
 man.rotation = 0;
 if (wall.hitTestPoint(man.x,man.y,true))
 {
  man.y +=  speed;
 }
}

2프레임 액션

up.addEventListener(MouseEvent.MOUSE_OVER,up);
function down(g)
{
 man.y +=  speed;
 man.rotation = 180;
 if (wall.hitTestPoint(man.x,man.y,true))
 {
  man.y -=  speed;
 }
}
down.addEventListener(MouseEvent.MOUSE_OVER,down);
function left(h)
{
 man.x -=  speed;
 man.rotation = -90;
 if (wall.hitTestPoint(man.x,man.y,true))
 {
  man.x +=  speed;
 }
}
left.addEventListener(MouseEvent.MOUSE_OVER,left);
function right(i)
{
 man.x +=  speed;
 man.rotation = 90;
 if (wall.hitTestPoint(man.x,man.y,true))
 {
  man.x -=  speed;
 }
}
right.addEventListener(MouseEvent.MOUSE_OVER,right);

마우스를 화살표 버튼에 대면 캐릭터가 움직이고, 벽에 닿으면 튕기는 액션입니다.

그런데 이런 에러 메시지가 뜨네요..1994202693_166b7018_20200115_213237.png
이런게 잔뜩 나옵니다
영어라 해석도 어려운데 혹시 누구 알고계신분 없나요..ㅠ

1 0
로그인 후 추천 또는 비추천하실 수 있습니다.
해시 468
XP 261
[레벨 2] - 진행률 44%
가입일
2018-03-20 16:42:46

최신글이 없습니다.

최신글이 없습니다.

댓글목록0

등록된 댓글이 없습니다.

댓글쓰기

적용하기
적용하기
사운드클라우드 바로가기 : https://soundcloud.com/
전체 5,840 건 - 113 페이지
번호
제목
글쓴이
게시판 전체검색