커뮤니티로 돌아가기

대화

인간이삼◈하늘구름님의 글에서 이어진 답글 0개

인
인간이삼◈하늘구름@dohun7

강좌15 점프게임에서 죽으면 위에있는 글씨가 바뀌는 캐릭터에 이액션 onClipEvent (load) { yspeed = 0; } onClipEvent (enterFrame) { yspeed += _root.g; _y += yspeed; if (Key.isDown(Key.RIGHT) && _x 0) { // 왼쪽으로 이동 _x -= 6; if (_xscale>0) { _xscale *= -1; } } if (Key.isDown(Key.RIGHT) || Key.isDown(Key.LEFT)) { this.gotoAndStop(2); // 땅에 서서 이동할때 } else { this.gotoAndStop(1); // 땅에 서있을때 } if (_y>450) { // 떨어져서 죽었을때 _root.gotoAndStop(1); _root.dk="님은 뒤졌음" } if (_x 550) { _x = 550; } } 벽에 이액션 onClipEvent (enterFrame) { if (this.hitTest(_root.man._x, _root.man._y, 1) && _root.man.yspeed>=0) { _root.man.yspeed = 0; _root.man.yspeed -= _root.g; } while (this.hitTest(_root.man._x, _root.man._y-2, 1) && _root.man.yspeed>=-1) { _root.man._y -= 1; } if (Key.isDown(Key.SPACE)) { if (this.hitTest(_root.man._x, _root.man._y+1, 1) && _root.man.yspeed>=-1) { _root.man.yspeed -= 14; } } } 프레임에 이액션 g=1; dk="님은 안뒤졌음" 위에 동적텍스트를 만들고 변수를 dk로.. 그럼 끝