XP 스크립트

타이틀/게임오버
2008.03.17 18:11

타이틀에 글씨 박기 .

WMN
조회 수 2721 추천 수 0 댓글 11

아래의 스크립트를 스크립트 에디터의 메인 위에 삽입해주시면 됩니다. 제목 쓰는 곳이라는 글씨를

 

바꿔주면 박을 글씨를 설정할 수 있습니다.

 

출처 : http://rpgxp.zetyx.net/

 

#==============================================================================
# ■ ゲ?ムタイトルの表示(ver 0.98)
#==============================================================================


#==============================================================================
# □ 커스터마이즈 포인트
#==============================================================================
module PLAN_TITLE_NAME
  TITLE_STR     = "제목 쓰는 곳"
  FONT_NAME     = ["굴림체", "고딕체"]    # 폰트
  FONT_SIZE     =   60                              # font size
  FONT_BOLD     = true                              # true = 굵은 글씨 false = 안 굵은 글씨
  FONT_ITALIC   = false                             # true = 이탤릭체
  STR_COLOR     = Color.new( 100, 110,  62)         #  문자의 색
  DRAW_FRAME    = true                              # true = 제목이 깜빡임
  FRAME_COLOR   = Color.new(0, 0, 0)                # 깜빡일 때 바뀌는 색
  DRAW_X        =    0                              # X 좌표 수정치
  DRAW_Y        = -100                              # Y 좌표 수정치
  BLINK         = true                              # 점멸
end

 

#==============================================================================
# ■ Scene_Title
#==============================================================================

class Scene_Title
  #--------------------------------------------------------------------------
  # ● メイン?理
  #--------------------------------------------------------------------------
  alias plan_title_name_main main
  def main
    # ??テストの場合
    if $BTEST
      battle_test
      return
    end
    # スプライトの作成
    @title_name_sprite = RPG::Sprite.new
    @title_name_sprite.z = 100
    bitmap = Bitmap.new(32, 32)
    bitmap.font.name = PLAN_TITLE_NAME::FONT_NAME
    bitmap.font.size = PLAN_TITLE_NAME::FONT_SIZE
    bitmap.font.bold = PLAN_TITLE_NAME::FONT_BOLD
    rect = bitmap.text_size(PLAN_TITLE_NAME::TITLE_STR)
    bitmap.dispose
    bitmap = nil
    @title_name_sprite.bitmap = Bitmap.new(rect.width, rect.height)
    @title_name_sprite.bitmap.font.name   = PLAN_TITLE_NAME::FONT_NAME
    @title_name_sprite.bitmap.font.size   = PLAN_TITLE_NAME::FONT_SIZE
    @title_name_sprite.bitmap.font.bold   = PLAN_TITLE_NAME::FONT_BOLD
    @title_name_sprite.bitmap.font.italic = PLAN_TITLE_NAME::FONT_ITALIC

    str = PLAN_TITLE_NAME::TITLE_STR
    if PLAN_TITLE_NAME::DRAW_FRAME
      @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::FRAME_COLOR
      if defined?(@title_name_sprite.bitmap.draw_text_plan_frame)
        @title_name_sprite.bitmap.draw_text_plan_frame(0, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(2, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(0, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text_plan_frame(2, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
        @title_name_sprite.bitmap.draw_text_plan_frame(1, 1, rect.width, rect.height, str)
      else
        @title_name_sprite.bitmap.draw_text(0, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(2, 0, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(0, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.draw_text(2, 2, rect.width, rect.height, str)
        @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
        @title_name_sprite.bitmap.draw_text(1, 1, rect.width, rect.height, str)
      end
    else
      @title_name_sprite.bitmap.font.color = PLAN_TITLE_NAME::STR_COLOR
      @title_name_sprite.bitmap.draw_text(rect, str)
    end
    @title_name_sprite.x = 640 / 2 - rect.width / 2 + PLAN_TITLE_NAME::DRAW_X
    @title_name_sprite.y = 480 / 2 - rect.height / 2 + PLAN_TITLE_NAME::DRAW_Y
    @title_name_sprite.blink_on if PLAN_TITLE_NAME::BLINK
    # 元のメソッドに?す
    plan_title_name_main
    # スプライトの解放
    @title_name_sprite.bitmap.dispose
    @title_name_sprite.dispose
  end
  #--------------------------------------------------------------------------
  # ● フレ?ム更新
  #--------------------------------------------------------------------------
  alias plan_title_name_update update
  def update
    # スプライトの更新
    @title_name_sprite.update
    # 元のメソッドに?す
    plan_title_name_update
  end
end

 
ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ ㅅㄱ

Who's WMN

?
 
 

  W M  N  
                  자료공유

Comment '11'
  • ?
    작은악마 2008.03.19 18:46
    아 글씨폰트를 바꾸는건가요?/
  • ?
    음악시간'-'* 2008.04.06 11:38

    우왓 ! 신기하네요 ;ㅁ; 잘쓰게씁니다 ^ㅇ^!!

  • ?
    별가 2008.08.06 18:50
    !! 이거찾던 중 너무 감사드립니다 ㅠㅠㅠ 감사용
  • profile
    ⌒_⌒ 2009.02.28 17:23
    감사합니다. 멋있네요~~!
  • ?
    메루스 2010.01.26 23:01

    감사 합니다

  • ?
    Krrrr7 2010.05.04 19:22

    음. 잘쓸께요~

  • ?
    ㅓ나ㅣ러마니어 2010.09.05 19:41

    일부러 타이틀에 제목을 넣을 필요가 없군요

    그런데

    true를 바꿔도

    깜빡이는게 안멈추네욤

     

  • ?
    게마 2010.11.18 16:40

    여기에 바이러스가 있네요.....

  • ?
    대작만들거임 2011.07.01 16:56

    잘됩니다.이런거를 찾고있었는데, 잘됬네요.감사합니다.

  • ?
    이리엘 2012.07.31 23:44

    유용하네요.제목에 라틴어 박았습니다..(그런데 깨지더라고요..orz)

  • profile
    아방스닉넴 2014.11.23 01:33
    오 사용법은 뭔가요?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
961 타이틀/게임오버 타이틀 화면 커스터마이즈 (타이틀 메뉴 바꾸는 스크립트) 9 file №1 2012.08.04 4392
960 메뉴 Etude87_Horror_Menu_XP ver.1.1 15 file 습작 2012.08.04 2762
959 기타 이벤트 범위 스크립트 2 Tine 2012.07.25 1580
958 메뉴 메뉴바꾸기 4 file ureazy 2012.07.23 2847
957 맵/타일 Etude87_Map_Remember_XP ver.1.2 2 습작 2012.07.17 1614
956 기타 Etude87_Bone_Animation_Character ver.1.2 4 습작 2012.07.06 1255
955 기타 창고 스크립트 5 긔염둥이♥ 2012.06.18 1726
954 HUD 맵이름 스크립트 1 file 긔염둥이♥ 2012.05.19 2914
953 메뉴 메뉴화면에 '해야 할 일' 알려주는 창 넣기 11 하진 2012.04.23 3257
952 전투 Mr.Mo's ABS Ultimate 3.4 by DerVVulfman Alkaid 2012.03.14 1803
951 기타 [자작]데미지표시 19 file JACKY 2012.02.15 3842
950 이름입력 RPG Advocate의 이름 입력 스크립트를 약간 손댄 것 Alkaid 2012.01.28 2784
949 스킬 스킬 포인트를 올리자! 3 what더붥 2012.01.26 2680
948 기타 FPLE 2 - First Person Labyrinth Explorer by MGC 1 Alkaid 2012.01.17 3415
947 기타 Note Editor for RMXP by NEWOLD 1 Alkaid 2012.01.15 2101
946 기타 간단한 Scene_Base #2 2 Alkaid 2012.01.15 1738
945 기타 쓸만한스크립트61개포함 28 file 궭크이 2012.01.09 4298
944 전투 Mr.Mo's ABS Ultimate 2.6 by DerVVulfman Alkaid 2012.01.04 1820
943 변수/스위치 Etude87_Variables_XP 2 습작 2011.12.26 2104
942 온라인 온라인 스크립트 Unis Net RMXP 공식 배포! 25 file 뮤바보 2011.12.25 9400
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52