Ace 스크립트

shot1.pngshot2.pngshot4.png

#==============================================================================
#   ** Map as Title Screen v1.1
#   Author: Acezon
#   Date: 16 June 2013
#------------------------------------------------------------------------------
#   Version 1.1
#   - Merged with the Yami TD compatible script
#   - Now compatible with Khas's Awesome Light Effects script
#   Version 1.0
#   - Initial Release
#------------------------------------------------------------------------------
#   Just credit me. Free to use for commercial/non-commercial games.
#==============================================================================

$imported = {} if $imported.nil?
$imported["Acezon-MapTitleScreen"] = true

#==============================================================================
# ** START Configuration
#==============================================================================
module Config
  # The id of the map you want the title to be displayed.
  Starting_Map_ID = 1

  # Character's position (though he/she is invisible)
  # This feature is useful for large maps.
  X_Pos = 7
  Y_Pos = 6
end
#==============================================================================
# ** END Configuration
#==============================================================================

#==============================================================================
# ** Scene_Title
#==============================================================================
class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Start
  #--------------------------------------------------------------------------
  def start
    SceneManager.call(Scene_MapTitle)
  end
  #--------------------------------------------------------------------------
  # * Terminate
  #--------------------------------------------------------------------------
  def terminate
    SceneManager.snapshot_for_background
    Graphics.fadeout(Graphics.frame_rate)
  end
end

#==============================================================================
# ** Scene_MapTitle
#==============================================================================
class Scene_MapTitle < Scene_Map
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor   :character_name           # character graphic filename
  attr_accessor   :character_index          # character graphic index
  #--------------------------------------------------------------------------
  # * Start
  #--------------------------------------------------------------------------
  def start
    DataManager.create_game_objects
    $game_party.setup_starting_members
    $game_map.setup(Config::Starting_Map_ID)
    $game_player.moveto(Config::X_Pos, Config::Y_Pos)
    $game_player.followers.visible = false
    $game_player.refresh
    $game_player.make_encounter_count

    @character_name = $game_player.character_name
    @character_index = $game_player.character_index
    $game_player.set_graphic('', 0)

    $game_system.menu_disabled = true
    Graphics.frame_count = 0

    super
    create_foreground
    create_background
    create_command_window
    play_title_music
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Yami's Title Decoration Compatibility Scriptlet
    if $imported["YSE-TD-VerticalCommand"]
      @command_sprite.each { |sprite|
        sprite.update
        @command_window.index == sprite.id ? sprite.activate : sprite.deactivate
      }
    end

    update_basic
    @spriteset.update
    $game_map.update(true)
    update_scene if scene_change_ok?
  end
  #--------------------------------------------------------------------------
  # * Determine if Debug Call by F9 key
  #--------------------------------------------------------------------------
  def update_call_debug
    # do nothing
  end
  #--------------------------------------------------------------------------
  # * Get Transition Speed
  #--------------------------------------------------------------------------
  def transition_speed
    return 20
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_background
    dispose_foreground
    dispose_command_sprite if $imported["YSE-TD-VerticalCommand"]
    SceneManager.snapshot_for_background
  end
  #--------------------------------------------------------------------------
  # * Create Background
  #--------------------------------------------------------------------------
  def create_background
    @sprite1 = Sprite.new
    @sprite1.bitmap = Cache.title1($data_system.title1_name)
    @sprite2 = Sprite.new
    @sprite2.bitmap = Cache.title2($data_system.title2_name)
    center_sprite(@sprite1)
    center_sprite(@sprite2)
  end
  #--------------------------------------------------------------------------
  # * Create Foreground
  #--------------------------------------------------------------------------
  def create_foreground
    @foreground_sprite = Sprite.new
    @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
    @foreground_sprite.z = 100
    draw_game_title if $data_system.opt_draw_title
  end
  #--------------------------------------------------------------------------
  # * Draw Game Title
  #--------------------------------------------------------------------------
  def draw_game_title
    @foreground_sprite.bitmap.font.size = 48
    rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
    @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
  end
  #--------------------------------------------------------------------------
  # * Free Background
  #--------------------------------------------------------------------------
  def dispose_background
    @sprite1.bitmap.dispose
    @sprite1.dispose
    @sprite2.bitmap.dispose
    @sprite2.dispose
  end
  #--------------------------------------------------------------------------
  # * Free Foreground
  #--------------------------------------------------------------------------
  def dispose_foreground
    @foreground_sprite.bitmap.dispose
    @foreground_sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Move Sprite to Screen Center
  #--------------------------------------------------------------------------
  def center_sprite(sprite)
    sprite.ox = sprite.bitmap.width / 2
    sprite.oy = sprite.bitmap.height / 2
    sprite.x = Graphics.width / 2
    sprite.y = Graphics.height / 2
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    @command_window = Window_TitleCommand.new
    @command_window.set_handler(:new_game, method(:command_new_game))
    @command_window.set_handler(:continue, method(:command_continue))
    @command_window.set_handler(:shutdown, method(:command_shutdown))

    if $imported["YSE-TD-VerticalCommand"]
      @command_window.y = Graphics.height
      @command_sprite = []
      i = 0
      @command_window.symbol_list.each { |symbol|
        sprite = Sprite_TitleCommand.new(symbol, i); i += 1
        @command_sprite.push(sprite)
      }
      @command_sprite.each { |sprite| sprite.show }
    end
  end
  #--------------------------------------------------------------------------
  # * Dispose Command Sprites
  #--------------------------------------------------------------------------
  def dispose_command_sprite
    @command_sprite.each { |sprite| sprite.dispose }
  end
  #--------------------------------------------------------------------------
  # * Close Command Window
  #--------------------------------------------------------------------------
  def close_command_window
    @command_window.close
    update until @command_window.close?
  end
  #--------------------------------------------------------------------------
  # * [New Game] Command
  #--------------------------------------------------------------------------
  def command_new_game
    close_command_window
    fadeout_all
    $game_system.menu_disabled = false
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.followers.visible = true
    $game_player.refresh
    $game_player.set_graphic(@character_name, @character_index)
    $game_map.autoplay
    SceneManager.goto(Scene_Map)
  end
  #--------------------------------------------------------------------------
  # * [Continue] Command
  #--------------------------------------------------------------------------
  def command_continue
    close_command_window
    fadeout_all
    SceneManager.call(Scene_Load)
  end
  #--------------------------------------------------------------------------
  # * [Shut Down] Command
  #--------------------------------------------------------------------------
  def command_shutdown
    close_command_window
    fadeout_all
    SceneManager.exit
  end
  #--------------------------------------------------------------------------
  # * Play Title Screen Music
  #--------------------------------------------------------------------------
  def play_title_music
    $data_system.title_bgm.play
    RPG::BGS.stop
    RPG::ME.stop
  end
end


좋지 아니한가 ↗
출처 http://thequirkyproton.wordpress.com/2013/03/10/map-as-title-screen/

Who's 스리아씨

?
뺘라뺘뺘
Atachment
첨부 '3'
  • ?
    jindou 2014.06.27 18:09

    감사합니다

  • ?
    jindou님 축하합니다.^^ 2014.06.27 18:09
    포인트 팡팡!에 당첨되셨습니다.
    jindou님은 16포인트를 보너스로 받으셨습니다.
  • profile
    뻘짓대마왕 2014.07.26 21:20
    음,,,어케사용하는거지
  • profile
    시즈쿠 2015.09.29 20:47
    이런건 역시 추천!

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 5110
공지 RPG VX ACE 유용한 링크 모음 16 아방스 2012.01.03 28928
77 기타 Yanfly Engine Ace Alkaid 2011.12.10 4382
76 전투 Yanfly 엔진 - 몬스터의 레벨 설정 6 file 스리아씨 2013.11.08 13003
75 그래픽 [ACE][BR] Awesome Light Effects 1.0(빛관련 스크립트) 37 file 꿈꾸는사람 2012.08.02 7015
74 이동 및 탈것 [RPG VX ACE]CSCA 텔레포트 스크립트 스리아씨 2014.01.05 2432
73 전투 [VX Ace] Damage Popup by Dargor 7 Alkaid 2011.12.04 5445
72 메뉴 [VX Ace] 다이얼 링 메뉴 스크립트 8 file RaonHank 2012.04.16 6673
» 타이틀/게임오버 [VX ACE]타이틀 화면에 맵을 표시하는 스크립트 4 file 스리아씨 2013.12.07 3541
70 스킬 [VX/VX Ace] Skill_Update_System 10 file 허걱 2012.06.11 3995
69 기타 [스크립트 사용자용] Tag System 1 허걱 2012.11.12 2079
68 메시지 [스크립트] Ace Message System - by. Yanfly 17 file 허걱 2012.05.21 7271
67 이동 및 탈것 [스크립트] Setp Sound (발걸음 소리) 20 file 허걱 2012.05.19 4660
66 전투 [스크립트] Sideview Battle System ver. 1.00 (일본어) 7 file 허걱 2012.05.20 6912
65 전투 多人数SRPGコンバータ for Ace by AD.Bank 6 습작 2013.05.13 4038
64 기타 게임속 이벤트를 텍스트 파일로 추출 2 file 영감쟁e 2013.10.15 3769
63 전투 공격시 반동데미지 스크립트 8 스리아씨 2013.10.11 1882
62 전투 기본전투의 커스텀 명중률 제작 안나카레리나 2018.06.10 543
61 전투 능력 강화/약화의 누적식 개조(버그수정) 13 아이미르 2012.02.08 3876
60 기타 던전 자동생성 4 Alkaid 2012.09.08 3160
59 전투 데미지의 한계치를 정하는 스크립트 3 file 스리아씨 2013.11.07 2050
58 HUD 동방프로젝트(풍신록) 맵 이름 표시 3 file 스리아씨 2013.09.24 3256
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11