질문과 답변

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 12387
RMVX 스톱워치를 제대로... 2 file 르코 2011.07.10 1315
RMXP 애니메이션에 쉐이크 효과 넣을 수 없나요? 2 개촙포에버 2011.07.09 1584
RMXP 대쉬 스크립트 mp 다떨어지면 못쓰게하는법 1 놀다가 2011.07.09 1378
RMVX 맵칩이 이상한건가요 2 seamo 2011.07.09 1043
RMVX 조건분기 질문점요 2 seamo 2011.07.09 1123
RMVX VLAD ABS 시스템에 관한 질문. 다이나믹로동 2011.07.09 1172
RMXP Atelier RGSS의 픽쳐넘버스크립트사용법좀 알려주세요. 4 레드 2011.07.09 1732
RMXP 에러해결 좀 해주세요~~~("제발 답변좀........"이 문제에 답변해주신분 좀 보세요) 1 file 대작만들거임 2011.07.09 1365
RMXP 일본사이트에서 캐릭터만들고보니까 주변에하얀게뜨는데;; 7 아만자만즤 2011.07.08 1732
RMVX 처음 킬때 동영상 넣는법 3 hamster and rabbit 2011.07.08 1392
RMVX 애드온 설정 ,,, 2 starsoad 2011.07.08 1224
RMXP 별의 커비 칩을 받았는데... 9 file IU[아이유] 2011.07.08 3232
RMVX 장비아이템 판매금지 1 슬 라임 2011.07.08 1322
RMVX 아이템에 활용도 설정하는법좀 알려주세요. 2 겜초 2011.07.07 1295
RMVX 캐릭터의 따라감 2 SBㅡ백색 2011.07.07 1233
RMVX 말로 설명 못하는 힘듦. 4 인뎐뎬쟝 2011.07.07 1121
GM 게임메이커 1 GPR 2011.07.06 2028
RMVX 캐릭터칩 크기에 대해 여쭤보려고 합니다. 우아니아랱치 2011.07.06 1256
RMVX 통행불가 구조물에 말거는 방법 2 unuseid 2011.07.06 1221
RM2k 게임실행시 화면이 검게 깜빡입니다 이시두 2011.07.06 2194
Board Pagination Prev 1 ... 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 ... 516 Next
/ 516