질문과 답변

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 59609
RMVX 대화 도중 상반신이 나오게 하는 법 1 IU[아이유] 2011.07.16 1720
RMXP 페이드인 명령어가 뭐죠? 3 석진이 2011.07.16 1822
기타 RGSS-RTP 3 arc 2011.07.15 5819
RMVX RPGVX 에 관하여 1 arc 2011.07.15 1455
기타 툴의 여러가지 기능상 문제, 혹은 컴퓨터문제. 3 초천재 2011.07.15 1476
기타 게임 만들 때 용어를 알려주세요 1 메이커스 2011.07.15 1316
RMXP 파노라마의 색조변경 어떻게하나요? 2 석진이 2011.07.15 1621
RMXP 조건분기 좀 복잡한 질문입니다 3 CJYG* 2011.07.14 1667
RMXP 셀프스위치 조건분기 오류 도와주세요 2 석진이 2011.07.14 1734
RMVX (해결) 데이터베이스 내용이 짤려서 나옵니다. file genie 2011.07.14 1762
RMXP 메시징방식(?)에 대해 질문이있습니다.. 9 file 초천재 2011.07.14 1480
RMVX 소설풍 스크립트 사용시 1 우아니아랱치 2011.07.13 1448
RMVX 배포용파일 작성시 타이틀 화면 초기화 unuseid 2011.07.13 1208
RMVX 배포용게임 업데이트시 세이브파일과 런타임 2 unuseid 2011.07.13 1435
RMXP rpgxp에서 필드에 들어가지않고 맵에서 전투를 어떻게 하나요? 2 훗훗 2011.07.13 2017
RMXP nil이 무슨뜻이예요? 6 석진이 2011.07.13 2804
RMVX 스크립트를 도중에 추가할 수 있나요? 2 우아니아랱치 2011.07.13 1133
RMXP 제발 도와주세요 3 SweetCorn 2011.07.12 1583
RMXP 메세지창 4줄 질문입니다. 2 환장 2011.07.12 2005
RMXP RPG XP 타이머에 좀더 다양한 기능 없나요? 7 석진이 2011.07.12 2502
Board Pagination Prev 1 ... 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 ... 518 Next
/ 518