질문과 답변

Extra Form

Con_sp = 1
module DASH 
  DASH_BUTTON = Input::C 
  NORMAL_SPEED = 4 
  DASH_SPEED = 5 
  HIGH_SPEED = 5.5 
  HIGH_DASH = true 
  HIGH_TIME = 30 
  NOT_SWITCH = 1 
  HIGH_NOT_SWITCH = 2
end
class Game_Player < Game_Character 
  def update
    @dash = 0        if @dash == nil 
    last_moving = moving? 
    unless moving? or $game_system.map_interpreter.running? or
          @move_route_forcing or $game_temp.message_window_showing
      if $game_switches[DASH::NOT_SWITCH] == false
        if Input.press?(DASH::DASH_BUTTON)
          $game_party.actors[0].sp -= Con_sp
          if @move_speed != DASH::DASH_SPEED
            @move_speed = DASH::DASH_SPEED
          end
          if $game_switches[DASH::HIGH_NOT_SWITCH] == false
            @dash += 1
            if @dash >= DASH::HIGH_TIME
              if @move_speed != DASH::HIGH_SPEED
                @move_speed = DASH::HIGH_SPEED
              end
            end
          end
        else
          if @move_speed != DASH::NORMAL_SPEED
            @move_speed = DASH::NORMAL_SPEED
          end
          @dash = 0
        end
      else
        if @move_speed != DASH::NORMAL_SPEED
          @move_speed = DASH::NORMAL_SPEED
        end
      end 
      case Input.dir4
      when 2
        move_down
      when 4
        move_left
      when 6
        move_right
      when 8
        move_up
      end
    end 
    last_real_x = @real_x
    last_real_y = @real_y
    super 
     if @real_y > last_real_y and @real_y - $game_map.display_y > CENTER_Y  
      $game_map.scroll_down(@real_y - last_real_y)
    end 
      if @real_x < last_real_x and @real_x - $game_map.display_x < CENTER_X 
      $game_map.scroll_left(last_real_x - @real_x)
    end 

    if @real_x > last_real_x and @real_x - $game_map.display_x > CENTER_X 
      $game_map.scroll_right(@real_x - last_real_x)
    end 
     if @real_y < last_real_y and @real_y - $game_map.display_y < CENTER_Y 

      $game_map.scroll_up(last_real_y - @real_y)
    end 
    unless moving?  
      if last_moving 

        result = check_event_trigger_here([1,2]) 
        if result == false 
          unless $DEBUG and Input.press?(Input::CTRL) 
            if @encounter_count > 0
              @encounter_count -= 1
            end
          end
        end
      end 
      if Input.trigger?(Input::C) 
        check_event_trigger_here([0])
        check_event_trigger_there([0,1,2])
      end
    end
  end
end
if

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

 

이 스크립튼데 mp 다는거 까진햇는데 mp 다깍이고 비활성화/ 활성화 하는방법좀 ..

Who's 놀다가

profile

시간은 기다려주지 않는다.

Comment '1'
  • profile
    습작 2011.07.25 10:36

    if $game_switches[DASH::NOT_SWITCH] == false && $game_party.actors[0].sp > 0


    위와같이 추가 조건을 넣어주면 됩니다.


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12451
RMVX 파티원 수 늘리는 방법이 뭔가요? 2 파멸의인도자 2011.11.13 1385
RMVXA RPG VX ACE 전투에서 민첩성, 운 관련 질문입니다. 3 우켈켈박사 2014.11.12 1384
RMVX RPGVX는 왜 XAS가없나요 2 고자몬 2011.07.12 1384
RMXP 광넷에서 몬스터가 쌔지는 방법은 없나요? 1 블러키 2011.03.26 1384
RM2k3 rpg2003 멈춤현상 질문이요 1 kdisks 2011.09.12 1383
RMVXA 사진 띄우는법 1 닉네잉 2012.08.17 1382
RMVX 지붕에 있는 그림자 없애는 방법좀요!! 3 file 오그리토그리 2011.07.27 1382
기타 비영리게임 배포 관련 법규가 어떻게 되었나요? 2 네잎클로버 2011.05.11 1382
RMVX 캐릭터 적용하는법 1 G DRGON 2011.03.25 1382
RMXP 폭탁 투척 하는 방법 아크에리아스 2012.06.17 1382
RMVXA 음악 추천 부탁드려요! 대자연, 맹수와의 사투를 주제로 하는 게임을 제작 중입니다. 2 달밤에왈츠 2012.06.13 1381
RMXP 자동실행 이벤트 관련 질문입니다 ㅠㅠ 5 흑십자군 2011.05.11 1380
RM2k 전투 시 죽으면 다시 살아나게 하는 법. 1 shagas 2010.11.13 1380
RMXP RPG XP 액알 몬스터 체력바 같은거 만드는법이 알고싶어요 프라미 2010.10.05 1380
RMVXA 장비별 상태 및 내구도 설정에 관하여 5 아자아자젤 2012.10.28 1379
RMXP 보행그래픽에 관해 질문드립니다. 1 csw7201 2011.09.10 1379
RMVXA 전투에서 데미지를 줄 수 없다는데... 3 Tape 2012.08.01 1378
RMXP 대쉬 스크립트 mp 다떨어지면 못쓰게하는법 1 놀다가 2011.07.09 1378
RMMV 2회차/ 멀티엔딩 제작법 3 ∃rrorcOd∃:716 2018.05.19 1378
RMXP RPGXP 게임 한글화를 하려고 하는데 일부 일본어,한자가 ?로 보입니다. 1 file EXKAGE 2014.08.12 1376
Board Pagination Prev 1 ... 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ... 516 Next
/ 516