RPGXP スクリプト
2014.06.01 22:35

횡스크롤 점프 [버튼허용스위치추가]

閲覧数 1854 推奨数 0 コメント 3
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷 修正 削除
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷 修正 削除
bandicam 2014-06-01 13-28-50-918.jpg
이벤트도중에 이동 경로 설정 해놓고 가고있는데..
점프키 누르면 도중에 되버려서 짜증났는데..
if($game_switches[27]) 스위치 27 ON 일 경우 [점프] 누르면 점프
스위치 OFF 일 경우 점프버튼 눌러도 무반응
Shadow.png

=begin

□횡스크롤 점프 스크립트 ■ (2014년 6월 1일)

! 스크립트 위치는 Scene_Debug 밑에서

※점프키: Alt 

점프키버튼 87줄

점프키스위치 100줄

※사다리 126줄

=end

class XRXS50 

  ENABLE_FULL_ACTY_MAPS = true

  ENABLE_SLIDE_DESCENT = true 

  JUMP_AS_KEY = false

end 


class Game_Player < Game_Character 


  attr_writer   :direction_fix 

  attr_accessor :walk_anime 


  attr_accessor :now_jumps 

  attr_writer   :xrxs50_direction_sidefix 


  def max_jumps 

    return 1 

  end 


  alias xrxs50_turn_left turn_left 

  def turn_left 

    if @xrxs50_direction_sidefix 

      @direction = 4 

    else 

      xrxs50_turn_left 

    end 

  end 


  alias xrxs50_turn_right turn_right 

  def turn_right 

    if @xrxs50_direction_sidefix 

      @direction = 6 

    else 

      xrxs50_turn_right 

    end 

  end 

end 


class Scene_Map 


  alias xrxs50_main main 

  def main 


    xrxs50_enable_check 


    xrxs50_main 

  end 


  alias xrxs50_update update 

  def update

    xrxs50_enable_check 

    $tag = $game_player.terrain_tag 

    xrxs50_update 


      if @xrxs50_enable 

      update_coordinates

    end 

  end 


  def update_coordinates 

    if $game_player.passable?($game_player.x,$game_player.y,2) 

      unless $game_player.moving? 

        if XRXS50::ENABLE_SLIDE_DESCENT and 

           Input.press?(Input::RIGHT) and 

           $game_player.passable?($game_player.x,$game_player.y+1,6) 

          $game_player.move_lower_right 

        elsif XRXS50::ENABLE_SLIDE_DESCENT and 

              Input.press?(Input::LEFT) and 

              $game_player.passable?($game_player.x,$game_player.y+1,4) 

          $game_player.move_lower_left 

        else 

          $game_player.move_down 

        end 

      end 

    else 

      $game_player.move_down

      $game_player.walk_anime = true unless $game_player.walk_anime 

      $game_player.now_jumps  = 0

      $game_variables[18] = 0

       if Input.trigger?(Input::ALT)  and            # 점프키■

         $game_player.now_jumps < $game_player.max_jumps

        if XRXS50::JUMP_AS_KEY 

          direction = $game_player.direction == 4 ? -2 : 2 

        else 

          if Input.press?(Input::RIGHT) 

            direction = 2.25

          elsif Input.press?(Input::LEFT) 

            direction = -2.25 

          else 

            direction = 0 

          end 

        end 

        if($game_switches[27])                # 점프키 스위치 스위치27ON 할경우 점프가능/ OFF 할경우 점프키눌러도 무반응■

        $game_player.jump(direction, -2)

        $game_variables[1] = 1

        $game_player.now_jumps += 1

        

        $game_player.walk_anime = true

        end

      end 

    end 


  end 


  alias xrxs50_transfer_player transfer_player 

  def transfer_player 


    xrxs50_transfer_player 


    xrxs50_enable_check 

  end 


  def xrxs50_enable_check 

  if $tag == 0 and XRXS50::ENABLE_FULL_ACTY_MAPS 

      $game_player.now_jumps = 0 if $game_player.now_jumps.nil? 

      @xrxs50_enable = true

      $game_player.direction_fix = true

      $game_player.xrxs50_direction_sidefix = true 

     elsif $tag == 1 and XRXS50::ENABLE_FULL_ACTY_MAPS    # 태그1이면 사다리■

      @xrxs50_enable = false

      $game_player.direction_fix = false

      $game_player.xrxs50_direction_sidefix = false 

    end 

  end 

  end

?
  • ?
    j군 2014.07.05 15:27
    스크립트 오류 뜹니다.
    어디서부터 시작하는거죠?
    스크립트 한글 끝난거부터입니까?
    아니면다입니까?
  • ?
    qfz-34 2014.12.10 05:18
    위키 누루면 점프되네요
  • ?
     운 2014.07.05 21:12
    =begin 부터합니다. 횡스크롤 스크립트는 몇몇스크립트 충돌이 많이 일어나서, 조심히 다루어야 합니다..

  1. 한글조합입력기(영어가능)

    Date2019.11.10 CategoryRPGXP スクリプト By조규진1 Views1199 Votes0
    Read More
  2. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP スクリプト By심심치 Views1321 Votes0
    Read More
  3. Font Setup

    Date2016.07.22 CategoryRPGXP スクリプト By운님 Views1777 Votes0
    Read More
  4. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP スクリプト By부초 Views2182 Votes0
    Read More
  5. RPGXP ATB전투 시스템 예제(스크립트는 예제 안에 포함)

    Date2015.11.17 CategoryRPGXP スクリプト ByMagNesium Views1013 Votes0
    Read More
  6. 스테이터스,보수,골드,플레임 타임 삭제

    Date2015.06.02 CategoryRPGXP スクリプト Byrpgmakingbot Views994 Votes0
    Read More
  7. 헤드 업 디스플레이 스크립트

    Date2015.01.30 CategoryRPGXP スクリプト By 운 Views1098 Votes0
    Read More
  8. 컬러 비트맵 타이틀 스크립트

    Date2015.01.20 CategoryRPGXP スクリプト By 운 Views1053 Votes1
    Read More
  9. 로고 스크립트

    Date2014.12.10 CategoryRPGXP スクリプト By 운 Views1395 Votes1
    Read More
  10. 타이틀 로딩 스크립트

    Date2014.12.07 CategoryRPGXP スクリプト By 운 Views1302 Votes0
    Read More
  11. 타이틀 스크립트

    Date2014.12.05 CategoryRPGXP スクリプト By 운 Views1262 Votes0
    Read More
  12. 액알 스크립트

    Date2014.11.23 CategoryRPGXP スクリプト By커비♥ Views1658 Votes1
    Read More
  13. 공포게임에 장비착용메뉴

    Date2014.08.24 CategoryRPGXP スクリプト By 운 Views1672 Votes0
    Read More
  14. 얼굴표시/문장을 한글자씩 나타내주는 스크립트 (출처-히페리온)

    Date2014.06.22 CategoryRPGXP スクリプト By시르카 Views1414 Votes0
    Read More
  15. 횡스크롤 점프 [버튼허용스위치추가]

    Date2014.06.01 CategoryRPGXP スクリプト By 운 Views1854 Votes0
    Read More
  16. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP スクリプト By천둥번들 Views2046 Votes0
    Read More
  17. 스텟찍기스크립트

    Date2014.02.22 CategoryRPGXP スクリプト By천둥번들 Views2064 Votes3
    Read More
  18. 달리기스크립트

    Date2014.02.22 CategoryRPGXP スクリプト By천둥번들 Views2519 Votes2
    Read More
  19. 8방향 이동스크립트

    Date2014.02.22 CategoryRPGXP スクリプト By천둥번들 Views1972 Votes6
    Read More
  20. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP スクリプト By 운 Views2199 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8