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
97 타이틀/게임오버 KGC_TitleDirection 알기쉽게 설명추가 5 파이어 2011.01.03 2662
96 기타 IEX - Script Library 1.0 by IceDragon 8 Alkaid 2011.01.11 2619
95 상점 상점에서 아이템 분류 5 file 파이어 2011.01.23 3510
94 타이틀/게임오버 [NO.0 간단 스크립트] 타이틀에 제작자 정보 올려보기 14 file NO.0 2011.01.30 3362
93 이름입력 아이템, 장비, 스킬 이름 색깔 바꾸기 14 까까까 2011.03.04 3732
92 전투 [덮어씌우기]Window_ActorCommand_EX 4 맛난호빵 2011.03.12 2341
91 스킬 스킬 필요조건에 살짝 손대봤습니다. -- 수정 18 아이미르 2011.03.23 2499
90 전투 VX SRPG 스크립트를 살짝 손대봤습니다. 13 아이미르 2011.03.31 3428
89 기타 KGC counter 스크립트. 반격기 추가스크립트입니다. 4 우켈킁 2011.03.31 1812
88 스킬 훔치기 스킬을 만드는 스크립트! 5 우켈킁 2011.03.31 2390
87 키입력 한글입력기(펌) 수정 10 전설의달빛조각사 2011.04.03 2674
86 스킬 스킬북으로 스킬 레벨업!, 'SW_BookSkill' by SiotWarrior(재수정) 21 file 시옷전사 2011.05.15 2817
85 온라인 RPGVX 3D스크립트 11 file 고자몬 2011.07.10 5050
84 스킬 강화주문서, SW_EchantScroll by 시옷전사(SiotWarrior) 21 file 시옷전사 2011.07.13 2605
83 기타 해상도 변경 스크립트 11 카리스 2011.07.19 2723
82 기타 화면 확대 스크립트 12 file 에돌이 2011.07.22 3061
81 기타 요리 시스템을 도입하는 스크립트입니다. 9 file 스페나로츠 2011.08.18 3142
80 스킬 SW_BookSkill && EchantScroll(상호충돌수정버전) 6 시옷전사 2011.08.22 1758
79 기타 여러스크립트(목적은 포인트) 12 file 인생은 힘들다. 2011.08.26 3087
78 장비 초보적인 장비레벨 개념 스크립트 - 수정 및 덤 9 아이미르 2011.09.06 2657
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32