질문과 답변

Extra Form

 

 

 

 

 

안녕하세요. 만드는 중에 또 막히는 부분이 있어 질문드립니다.

 

 이번엔 파이어, 스킬베기 등의 애니메이션 재생 위치를 질문드리려고 하는데요

 

 

 

-----------------------

 

 

'베기'공격을 당했을때, 첫번째 그림처럼 작게, 그리고 위치도 이상한 곳에 표시가 되는데요,

 

두번째 그림처럼 애니메가 크게, 원하는 위치대로

 

재생시킬 수 있는 방법이 있는지 궁금합니다.

 

(반대로 제가 공격버튼을 누를 땐, 적 오크 중간 위치로 크게 재생됩니다. MV 기본설정이 그런듯 합니다)

 

 

-----------------------

 

 

 추가로, '체력이 줄어들 때' 라는 if문을 만들고 싶은데요.

 

조건분기나 변수를 어떻게 설정해야 할지 궁금합니다.

 

 

항상 감사드립니다~! 좋은 밤 되세요.

 

 

 

 

 

 

 

■ 질문전 필독!
  • 질문할 내용이 이 게시판이나 강좌에 이미 있는지 확인합니다.
  • 하나의 게시물에는 하나의 질문만 합니다.
  • 제목은 질문의 핵심 내용으로 작성합니다.
  • 질문 내용은 답변자가 쉽게 이해할 수 있도록 최대한 상세하게 작성합니다.
  • 스크립트의 전문이 필요할 경우 txt 파일 등으로 첨부해 주시기 바랍니다.
  • 답변받은 게시물은 삭제하지 않습니다.
  • 답변이 완료된 경우 해당 답변해주신 분들께 감사의 댓글을 달아줍니다.
    • 처음 오신 분들은 공지 게시물을 반드시 읽어주세요!

※ 미준수시 사전경고 없이 게시물을 삭제합니다.

Comment '2'
  • ?
    랑비 2016.05.15 00:27
    불덩이를 던졌다가 타겟지점에 도착하면 폭발하는 에니메이션을 구현했었을때
    에니메이션을 원하는 위치에 하기위해서 저같은 경우에는 이런 스크립트를 사용했었습니다.

    var _Sprite_Animation_setup = Sprite_Animation.prototype.setup;
    Sprite_Animation.prototype.setup = function(target, animation, mirror, delay) {

    //this._id= target._character._eventId;
    if($gameMap._events[target._character._eventId]._change_animation_target){
    this._ischangeposition=$gameMap._events[target._character._eventId]._change_animation_target;
    this._change_x = $gameMap._events[target._character._eventId]._change_x;
    this._change_y = $gameMap._events[target._character._eventId]._change_y;
    if($gameMap._events[target._character._eventId]._target_id){
    var target=SceneManager._scene._spriteset._characterSprites.filter(function(event){ if(event._character._eventId===$gameMap._events[target._character._eventId]._target_id){return event} })[0];
    }
    _Sprite_Animation_setup.apply(this,arguments);

    $gameMap._events[target._character._eventId]._change_animation_target=false;
    $gameMap._events[target._character._eventId]._target_id=0;

    }else{
    _Sprite_Animation_setup.apply(this,arguments);
    }
    };
    var _Sprite_Animation_prototype_updatePosition = Sprite_Animation.prototype.updatePosition;
    Sprite_Animation.prototype.updatePosition = function() {
    _Sprite_Animation_prototype_updatePosition.call(this);
    if(this._ischangeposition){
    this.x=this._change_x;
    this.y=this._change_y;
    }
    }

    Game_CharacterBase.prototype.target_animation = function(target_id,animation_id) {
    this._change_animation_target=true;
    this._animationId= animation_id;
    this._change_x=$gameMap._events[target_id].screenX();
    this._change_y=$gameMap._events[target_id].screenY();
    this._target_id=target_id;
    };

    function point_animation(event_id , animation_id, x, y){
    $gameMap._events[event_id]._change_animation_target=true;
    $gameMap._events[event_id]._animationId= animation_id;
    $gameMap._events[event_id]._change_x=x;
    $gameMap._events[event_id]._change_y=y;
    }

    그리고 아래의 한줄로 실행을 시켰었지요...
    point_animation(i,139,$gameScreen._pictures[i]._targetX,$gameScreen._pictures[i]._targetY)
    point_animation(이벤트 아이디,에니메이션 아이디,에니메이션이 위치할 x,에니메이션이 위치할 y);

    그런데 .... 미숙한 스크립트라 추천할수가 없군요.... 원하시는 표현을 구현하실때 참고하시라고 적었습니다.
  • ?
    랑비 2016.05.15 00:36
    아래보다 더 쉬운방법은... 이벤트의 위치에 에니메이션이 발동하니까요 이벤트의 위치를 여성그림좌표로 이동시키면 되겟네요

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12533
RMVXA 이벤트 후에 그래픽 표시 2 알리아 2016.05.17 143
RMVXA 장비한 아이템을 화면에 표시하는 법을 알고 싶습니다. Xmania 2016.05.17 100
기타 시나리오 작법에 대해서 3 fate아르토리아 2016.05.16 203
RMMV rpg mv:npc 위에 말풍선을 띄우고 싶습니다 2 MOGRITH 2016.05.16 888
기타 Locale Emulator 구동 질문 file KINEW 2016.05.15 333
기타 rpg vx 사용시 전체화면할때 화면깜빡임 ㅠㅠ wns23c 2016.05.15 764
RMMV 장비창에 변수 표시 1 file 가시밭 2016.05.15 166
RMXP 대규모 파티 질문 avangs에 있는 스크립트는 죄다 실행해 봤는데 안되네요 file 겜웅이 2016.05.14 103
RMMV MV 전투 재생에 대해 질문드립니다! (사진첨부) 2 file 조하루 2016.05.14 409
RMVXA Ace Message System 를 적용해보려는 데요 file 타키리 2016.05.13 100
RMMV 전투 중 주인공 스탠딩CG를 바꾸는 게 가능할까요? 조하루 2016.05.13 224
RMMV 플러그인 ON / OFF를 명령어로 바꿀수있나요 ? 우월감 2016.05.12 115
RMMV MV 메시지 출력에 스킵이나 히스토리를 볼수 있는 플러그인이 있는지 궁금합니다 6 조하루 2016.05.10 952
기타 윈도우태블릿으로 쯔꾸르게임하는법 4 심즈오니 2016.05.09 1091
RMMV MV 자바스크립트 소스관련 질문 2 huguduk 2016.05.08 200
RMVXA 아이템설명을 게임도중에 바꾸는법 버섯수프 2016.05.08 100
RMVXA 해상도 변경시 이벤트가 안보이는 문제.. file NaNuyu 2016.05.08 108
RMVXA 아직도 제가 모르는게 많아요... 2 게임만들고싶어요 2016.05.08 126
RMVXA 다리 건너기에 관해서 2 file LOOK 2016.05.07 154
RMXP 맵타일 불러오는 방법 11 Rogovin 2016.05.07 203
Board Pagination Prev 1 ... 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 ... 517 Next
/ 517