VX 스크립트

1-Direction Movement Style
Version
1.0
by Woratana
Release Date: 10/06/2008


Introduction
This is the alt. movement style for shooting game.
Player will turn left/right by press Left/Right,
and walk forward/backward by press Up/Down.

This movement style will allow player to turn and shoot around without move from spot he is standing~

Enjoy~ laugh.gif


Screenshots
-No screenshot-


Script
Place it above main

스크립트
#===============================================================
# ● [VX] ◦ 1-Direction Movement Style ◦ □
# * a.k.a. Resident Evil Movement Style~ *
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 10/06/2008
# ◦ Version: 1.0
#--------------------------------------------------------------
# ◦ Feature:
# Change the way to move player to...
# press UP: Move forward
# press DOWN: Move backward
# press LEFT: Turn Left
# press RIGHT: Turn Right
#--------------------------------------------------------------
# ◦ How to use:
# Put this script above main, you can setup script below
#=================================================================
class Game_Player < Game_Character
  
  #========================================================
  # SETUP SCRIPT: Configure Player's Control Buttons Here~
  # These buttons will apply to default move system too.
  #--------------------------------------------------------
  SSM_UP = Input::UP
  SSM_DOWN = Input::DOWN
  SSM_LEFT = Input::LEFT
  SSM_RIGHT = Input::RIGHT
  #------------------------------------------
  SSM_DASH_BACKWARD = false # Allow player to run backward? (true/false)
  SSM_CONTROL_SWITCH_ID = 9 # Switch to turn 1-dir movement system ON
  #=========================================================
  
  def move_by_input
    return unless movable?
    return if $game_map.interpreter.running?

    if $game_switches[SSM_CONTROL_SWITCH_ID] # If control switch is ON
      # Shooting style movement
      if Input.repeat?(SSM_LEFT)
        turn_left_90
      elsif Input.repeat?(SSM_RIGHT)
        turn_right_90
      elsif Input.press?(SSM_DOWN)
        move_backward
      elsif Input.press?(SSM_UP)
        move_forward
      end
    else
      # Default movement
      if Input.press?(SSM_LEFT)
        move_left
      elsif Input.press?(SSM_RIGHT)
        move_right
      elsif Input.press?(SSM_DOWN)
        move_down
      elsif Input.press?(SSM_UP)
        move_up
      end
    end
  end
  
  alias wor_gampla_onedirmov_dash dash?
  def dash?
    return false if $game_switches[SSM_CONTROL_SWITCH_ID] and Input.press?(SSM_DOWN) and
      !SSM_DASH_BACKWARD
    wor_gampla_onedirmov_dash
  end
end
Comment '4'
  • profile
    카와이 2009.01.14 17:19
    안녕하세요?무플방지위원회입니다.
  • ?
    크라상 2009.01.14 19:09
    Man님이 올린건 전부 설명이 없네요.
  • ?
    루시펠 2009.01.20 00:10
    설명좀부탁합니다..
  • ?
    훈덕 2009.01.30 08:24
    캐릭터 움직이는 방식이 좌우를 누르면 캐릭터 방향이 바뀌고
    위를 누르면 보고있는 방향으로 전진하는 방식으로 바뀐다고 하네요.
    바이오 하자드 1~3 스타일이라고 하면 이해되시려나?
    일부 액알에서 제자리에서 방향만 트는 조작을 가능하게해주는 스크립트라고 볼수있겠네요.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
217 빠른 스킬사용 6 file RPGbooster 2008.10.08 2814
216 오디오 사운드 자동 변환 설정 rukan 2009.07.01 1461
215 오디오 사운드테스트 스크립트 13 file 카르와푸딩의아틀리에 2009.08.19 2106
214 전투 사이드 뷰 시스템 [시트르산님 제공] 56 아방스 2010.11.29 7499
213 전투 사이드뷰 스크립트 [2003 전투 방식] 39 아방스 2008.03.09 8406
212 전투 사이드뷰 애드온 7 비극ㆍ 2010.08.21 6758
211 전투 사이드뷰배틀3.3 + ATB1.1 스크립트. 65 할렘 2009.02.01 10946
210 전투 사이드뷰배틀에서 시각적으로 위치 지정하기 9 file 078656577er 2009.10.14 4910
209 전투 사이드뷰배틀에서 찌르기 공격 가능하게 7 078656577er 2009.09.16 3223
208 기타 사이드뷰배틀에서 찌르기 공격 가능하게(Upgrade!) 6 078656577er 2009.10.15 2838
207 상점 상점 무기, 방어구 능력치 비교 스크립트! 18 불독 2008.12.25 3611
206 상점 상점 아이템 목록 정리 14 정의로운녀석 2008.07.22 3771
205 상점 상점 할인 스크립트(변수를 이용한 물건 가격 조정) 9 달표범 2009.09.04 3185
204 상점 상점에서 아이템 분류 5 file 파이어 2011.01.23 3510
203 상점 상점을 색다르게 바꿔주는 스크립트 34 file 할렘 2009.02.02 6301
202 상점 상점의 자세한 표시 32 file RPGbooster 2008.10.11 4008
201 상태/속성 상태 메뉴 변경 스크립트 45 죄송해욧! 2008.03.01 4284
200 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
199 전투 새로운 전투돌입효과 29 file RPGbooster 2008.10.08 5079
198 새로운 종류의 세이브 스크립트!! 8 Man... 2008.10.28 3517
Board Pagination Prev 1 ... 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32