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 5408
577 기타 커스텀 페이지 스크립트 9 file 달표범 2009.09.07 3140
576 커서 애니메이션 12 file RPGbooster 2008.10.11 3127
575 메뉴 커서 모양 바꾸는 스크립트 16 아방스 2009.01.20 3959
574 전투 커먼이벤트 컷인 스크립트 15 허걱 2009.08.23 3399
573 키입력 커맨드 입력 스킬 시스템 17 file 양념통닼 2008.05.29 3345
572 기타 커맨드 시스템 7 file 허걱 2009.07.21 2856
571 액터 캐릭터에 다양한 효과주기 투명도 조절 9 아방스 2008.03.04 2943
570 메뉴 캐릭터설명을 심플하게! 스크립트. 13 file 할렘 2009.02.03 4848
569 기타 캐릭터 소개화면 16 file 좀비사냥꾼 2009.03.29 6044
568 메시지 캐릭터 대화상자 - Character's Textbox ver 1.0 6 아방스 2010.12.17 6456
567 기타 카지노 슬롯머신 15 file 아방스가 짱 2010.02.28 3023
566 전투 카운트배틀 시스템(스크립트 한글살짝번역) 10 file 카르와푸딩의아틀리에 2009.06.17 5520
565 장비 카드 슬롯 장비 스크립트[수정] 2 빙하 2012.11.11 2058
564 장비 카드 슬롯 장비 스크립트 18 file 아이미르 2011.10.13 4131
563 맵/타일 추가 맵칩 사용 - 공개 34 file 허걱 2009.08.19 6491
562 제작도구 최대한 한글로 변혁 했음Window Maker V1.0(대박) 15 Man... 2008.10.29 4673
561 파티 최대 파티 늘리는 스크립트 59 file 아방스 2008.03.09 5431
560 장비 초보적인 장비레벨 개념 스크립트 - 수정 및 덤 9 아이미르 2011.09.06 2657
559 스킬 체스트 팝업 3.0 9 file 파이어 2010.12.05 3037
558 체력 게이지바 스크립트 30 아방스 2008.09.01 5829
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32