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 6155
1021 메시지 Taylor's Simple Message System 2000 Alkaid 2020.07.05 242
1020 제작도구 [XP/VX/VXA] Doodad's Editor by newold Alkaid 2020.07.12 385
1019 이름입력 한글조합입력기(영어가능) file 조규진1 2019.11.10 499
1018 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 595
1017 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 611
1016 맵/타일 맵연결 스크립트 (데모첨부) file 게임애호가 2018.06.15 689
1015 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 709
1014 기타 Boat Script 백호 2009.02.21 729
1013 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
1012 기타 Materia System file 백호 2009.02.21 749
1011 기타 Real-Time Day Night 3 백호 2009.02.22 751
1010 스킬 SG_Escape Only Skills by sandgolem (SDK호환) 백호 2009.02.22 752
1009 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
1008 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
1007 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
1006 스킬 Skill Requirements by SephirothSpawn (SDK호환) file 백호 2009.02.22 763
1005 기타 Sphere Grid System file 백호 2009.02.21 765
1004 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 765
1003 스킬 SG_Skill Break by sandgolem (SDK호환) 백호 2009.02.22 772
1002 기타 Activation_system file 백호 2009.02.22 775
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