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
1001 ABM(액알)+Jindow(진도우) 3 WMN 2008.04.06 5116
1000 전투 ABP 액알 (Action Battle Player) 14 file 백호 2009.02.22 4557
999 스킬 ABP액알 v1.2 스킬추가, 버그수정판 36 file 백호 2009.02.22 6919
998 기타 ABS 몬스터 HP 게이지 바 11 백호 2009.02.22 2485
997 전투 ABS_v3액션 알피지 46 file 알피지GM 2010.03.07 5806
996 기타 Activation_system file 백호 2009.02.22 775
995 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2371
994 전투 Active Time Battle 2.62 by パラ犬 file Alkaid 2010.09.06 1652
993 액터 Actor Customization 6.0.2 by Synthesize 4 file Alkaid 2010.09.17 1912
992 아이템 Additional Item Drop by SephirothSpawn (SDK호환) 1 백호 2009.02.22 891
991 메뉴 Advanced Command Windows by Tsunokiette file 백호 2009.02.22 1307
990 이름입력 Advanced Enter Hero Name Window by RPG Advocate 백호 2009.02.22 1168
989 장비 Advanced Equip Window 백호 2009.02.22 806
988 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
987 기타 Advanced Gold Display by Dubealex (돈 액수를 세자리씩 끊어 표기) 2 Alkaid 2010.11.18 1559
986 HUD Advanced HUD Script 3 file 백호 2009.02.22 1341
985 전투 Advanced Individual Battle Command v2.1 by Trickster@rmxp.org (SDK호환) 1 file 백호 2009.02.22 1189
984 전투 Advanced Limit Breaks (KGC스크립트를 SDK호환용으로 손질한 것) 백호 2009.02.22 1214
983 스킬 Advanced Mission Skills/Shop/Manager by trickster 3 file 백호 2009.02.22 1601
982 이동 및 탈것 Advanced Player Movement by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 801
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