질문과 답변

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 21144
RMVXA 모듈을 txt파일로 만들어 게임상으로 불러오는 방법을 알고 싶습니다. 8 77이알 2012.09.26 1402
RMVXA 캐릭터 제작에 관련해서 질문. 2 file 꼭해볼테다 2013.10.13 1401
RMVX 처음 킬때 동영상 넣는법 3 hamster and rabbit 2011.07.08 1401
RMXP 님들아 도와주세요 BGM이 안나와요 5 미니미니 2013.06.17 1400
RMXP rpgxp프로그렘글자 file 홍창현 2013.01.14 1400
RMVX 몬스터 리젠 시키는 방법 5 file RASA 2011.12.27 1400
RMVX 파티원 수 늘리는 방법이 뭔가요? 2 파멸의인도자 2011.11.13 1399
RMVX 포켓몬 스크립트 KIMj 2010.10.29 1399
RMVX 알피쥐 vx 전투 질문 2 로디머스 루도리아 2011.09.18 1398
RMXP RPGXP 게임 한글화를 하려고 하는데 일부 일본어,한자가 ?로 보입니다. 1 file EXKAGE 2014.08.12 1397
RMXP RPG XP 액알 몬스터 체력바 같은거 만드는법이 알고싶어요 프라미 2010.10.05 1397
RMVXA RPG VX ACE 전투에서 민첩성, 운 관련 질문입니다. 3 우켈켈박사 2014.11.12 1396
RMXP 캐릭터 플레이어 속도 어떻게 변횐하나요? 1 맥켄리 2012.09.24 1396
RMVXA rpg vx ace 캐릭터 만드는법 4 aedashwkdi 2014.08.08 1395
RMVXA 특정 장소에서 인카운트 변경 2 레비엔 2012.09.23 1395
RMXP 대쉬 스크립트 mp 다떨어지면 못쓰게하는법 1 놀다가 2011.07.09 1393
RMXP 광넷에서 몬스터가 쌔지는 방법은 없나요? 1 블러키 2011.03.26 1393
RMVX 캐릭터 적용하는법 1 G DRGON 2011.03.25 1393
RMVXA 음악 추천 부탁드려요! 대자연, 맹수와의 사투를 주제로 하는 게임을 제작 중입니다. 2 달밤에왈츠 2012.06.13 1393
RMVXA 사진 띄우는법 1 닉네잉 2012.08.17 1392
Board Pagination Prev 1 ... 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ... 518 Next
/ 518