VX 스크립트

Author: Azuaya
Version: 1.1 (Current)

Scene_Credit script. Plug & Play

Updates:
v1.0 : First released
v1.1 : Does not require Vocab stuff no more... and fixed a few things
여기서부터
#==============================================================================
# ** Scene_Credits by Azuaya
#------------------------------------------------------------------------------
#  This section shows options of starting credit, terminating it and back to title.
#==============================================================================

class Scene_Credits < Scene_Base
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    create_graphic                       # Create graphic
    create_command_window          # Create command window
    play_music                    # Play selected music
  end
  #--------------------------------------------------------------------------
  # * Post-Start Processing
  #--------------------------------------------------------------------------
  def post_start
    super
    open_command_window
  end
  #--------------------------------------------------------------------------
  # * Pre-termination Processing
  #--------------------------------------------------------------------------
  def pre_terminate
    super
    close_command_window
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_command_window
    snapshot_for_background
    dispose_graphic
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0    #Show Credit
        command_start_credits
      when 1    #Close Credit
        command_terminate
      when 2    #Back to Title
        command_to_title
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Create Graphic
  #--------------------------------------------------------------------------
  def create_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system("Credit")    #Add an image in System for Credit
  end
  #--------------------------------------------------------------------------
  # * Dispose Graphic
  #--------------------------------------------------------------------------
  def dispose_graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = "Start Credit"
    s2 = "Terminate"
    s3 = Vocab::to_title
    @command_window = Window_Command.new(172, [s1, s2, s3])
    @command_window.x = ( 915 - @command_window.width) / 2
    @command_window.y = 280
    @command_window.opacity = 255

    @command_window.openness = 0
    @command_window.open
  end
  #--------------------------------------------------------------------------
  # * Dispose of Command Window
  #--------------------------------------------------------------------------
  def dispose_command_window
    @command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Open Command Window
  #--------------------------------------------------------------------------
  def open_command_window
    @command_window.open
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 255
  end
  #--------------------------------------------------------------------------
  # * Close Command Window
  #--------------------------------------------------------------------------
  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end
  #--------------------------------------------------------------------------
  # * Play Music
  #--------------------------------------------------------------------------
  def play_music
    Audio.bgm_play(" " , 100, 100)    #Add BGM and it will play that BGM
    RPG::BGS.stop
    RPG::ME.stop
  end
  #-----------------------------------------
  # * Show Credit
  #-----------------------------------------
  def command_start_credits
    $scene.credit.start
    close_command_window
    open_command_window
  end
  #-----------------------------------------
  #  * End Credit
  #-----------------------------------------
  def command_terminate
    $scene.credit.terminate
  end
  #--------------------------------------------------------------------------
  # * Back to Title
  #--------------------------------------------------------------------------
  def command_to_title
    $scene = Scene_Title.new
    close_command_window
  end
end

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
177 전투 RPG Tankentai SBS 3.3 + ATB Kaduki Eng 58 아방스 2009.02.05 9071
176 기타 RPG 2000이나 RPG 2003처럼 전체화면으로 나오게 하는 스크립트(대박) 21 Man... 2008.10.28 4821
175 맵/타일 Roguelike Random Dungeon Generator 2.0 by cozziekuns 4 file Alkaid 2011.09.29 2560
174 영상 RMVX에서 AVI 재생 스크립트 12 Nymph 2008.07.07 4108
173 기타 RMVX Patcher 1.2.0 by Yeyinde 5 file Alkaid 2010.11.12 2116
172 기타 Resize and Scale by OriginalWij 1 습작 2013.05.13 1349
171 전투 Requiem SBABS (Requiem Squad Based Battle System) 14 vk 2009.02.07 7541
170 전투 Requiem ABS Hero Edition by Falcao 습작 2013.05.13 2004
169 전투 Requiem ABS 8 - 액션 배틀 시스템 8 36 아방스 2009.06.24 8540
168 Repel Effect 1 Man... 2008.10.28 1753
167 기타 reijubv - New Balloon Command (VXA에서도 작동) 1 file 혜인 2013.04.08 1332
166 장비 Rei(레이)의 Paperdoll(비쥬얼 장비)스크립트 20 file 루시페르 2009.07.29 4467
165 이동 및 탈것 Rei Advanced Movement System 8 file 카르와푸딩의아틀리에 2009.08.19 2624
164 타이틀/게임오버 Random Title Screen 2 Man... 2008.10.28 1454
163 타이틀/게임오버 Rafidelis KaHh Box 타이틀화면 20 카르와푸딩의아틀리에 2009.08.23 5004
162 메시지 Quick Face Border 12 아방스 2008.03.05 4161
161 HUD PRABS v1.0 [hud,주석액알,원거리공격,hotkeys,vx] 대박감이다. 47 유칸지 2008.08.13 11114
160 전투 PRABS 2.0 액션배틀시스템 58 file RPGbooster 2008.10.08 7572
159 액터 Point Spend System 1.05 by Drago del Fato (포인트로 스탯 올리기) 6 Alkaid 2010.09.08 2612
158 Path Finding 6 Man... 2008.10.08 1530
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