고급강의실
2014.06.19 08:15

배틀창 이름 체력 레벨 좌표 변경하기

조회 수 1228 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

다 아실거라 생각합니다만......

그래도 모르실 분을 위해......

#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  배틀 화면에서 파티 멤버의 스테이터스를 표시하는 윈도우입니다.
#==============================================================================

class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  # ● 공개 인스턴스 변수
  #--------------------------------------------------------------------------
  attr_accessor :battler                  # 버틀러
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize()
    super(0, 320, 640, 160)
    self.contents = Bitmap.new(width - 256, height - 32)
    @level_up_flags = [false, false, false, false]
    refresh
  end
  #-----------------------------------------------------------------
  # ● 레벨업 플래그의 설정
  #     actor_index : 액터 인덱스
  #--------------------------------------------------------------------------
  def level_up(actor_index)
    @level_up_flags[actor_index] = true
  end
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_x = i * 160 + 4
      draw_actor_name(actor, actor_x + 250, 0)   << 이 부분에서 받아온 actor의 x값에 +@를 해주시면 됩니다.
      draw_actor_hp(actor, actor_x + 220, 32, 120)
      draw_actor_sp(actor, actor_x + 220, 64, 120
)
     self.contents.draw_text(actor_x + 300, 96, 120, 32, "KOSMOS")
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x + 180, 96)
      end
    end
  end
  #--------------------------------------------------------------------------
  # ● 프레임 갱신
  #--------------------------------------------------------------------------
  def update
    super
    # 메인 국면 때는 불투명도를 약간 내린다
    if $game_temp.battle_main_phase
      self.contents_opacity -= 4 if self.contents_opacity > 191
    else
      self.contents_opacity += 4 if self.contents_opacity < 255
    end
  end
end

 

배틀스테이터스 상태창 하단에 제 나름대로 메세지를 넣어봤습니다만, MP색 바뀌면 색깔이 같이 바뀌는건 많이 슬프죠......

위에 올려진 좌표는 전부 중앙에 위치되어있습니다.

나름 깔끔하다고 생각합니다.

?

  1. 게임제작강좌 A-Z 색인 (2016.1.24 ver)

    Date2016.01.12 Category초급강의실 By천무 Views8497 Votes1
    read more
  2. [RMMV] 크로노 엔진(Chrono Engine) 플러그인 사용법

    Date2017.07.16 Category고급강의실 By러닝은빛 Views4182 Votes2
    Read More
  3. [MV플러그인] Armor Scaling 강의

    Date2016.02.13 Category고급강의실 By백난화백 Views3963 Votes2
    Read More
  4. [MV플러그인] Action Sequence 강의

    Date2016.02.12 Category고급강의실 By백난화백 Views6097 Votes1
    Read More
  5. [동영상] 스크립트 나도좀 잘해보자 -1-

    Date2016.02.04 Category고급강의실 By천무 Views1998 Votes1
    Read More
  6. PIXI Filter 총정리 (PIXI 2.2.9)

    Date2016.01.18 Category고급강의실 By러닝은빛 Views19097 Votes3
    Read More
  7. [RGSS2 강좌] 기초편 2. 변수와 상수

    Date2016.01.10 Category고급강의실 By천무 Views1215 Votes0
    Read More
  8. [RGSS2 강좌] 기초편 1. 소개

    Date2016.01.10 Category고급강의실 By천무 Views1338 Votes0
    Read More
  9. Rpg Maker MV 함수 리스트(공식포럼)

    Date2016.01.10 Category고급강의실 Byplam Views1603 Votes1
    Read More
  10. 타이틀에 동영상을 넣는 플러그인 사용법

    Date2016.01.08 Category고급강의실 By러닝은빛 Views2978 Votes1
    Read More
  11. RPG Maker MV 메모리 누수 문제 해결법

    Date2016.01.07 Category고급강의실 By러닝은빛 Views5154 Votes1
    Read More
  12. XP to MV 컨버터 사용법

    Date2015.12.28 Category고급강의실 By러닝은빛 Views3247 Votes0
    Read More
  13. 기본 게임 폰트를 다른 폰트로 바꾸기

    Date2015.12.21 Category고급강의실 By러닝은빛 Views7933 Votes0
    Read More
  14. 처음부터 전체화면으로 시작하기

    Date2015.12.21 Category고급강의실 By러닝은빛 Views4791 Votes0
    Read More
  15. [RPG MV] 타이틀 메뉴 일부 없애기

    Date2015.12.20 Category고급강의실 By박야옹 Views4239 Votes1
    Read More
  16. [RPGMV Plugin 영상] 무작정 해보기 "Gameus' Quest System"

    Date2015.12.20 Category고급강의실 By천무 Views2120 Votes0
    Read More
  17. [RPGMV Plugin 영상] 무작정 해보기 "심플ATB"

    Date2015.12.20 Category고급강의실 By천무 Views1426 Votes0
    Read More
  18. VX Ace to MV 컨버터 사용법 ( .rvdata2 → .json )

    Date2015.12.14 Category고급강의실 By러닝은빛 Views7847 Votes0
    Read More
  19. [RPGMV Plugin 영상] 한국어 조사처리, 해상도변경 플러그인!!

    Date2015.12.12 Category고급강의실 By천무 Views1696 Votes0
    Read More
  20. [소공지] 플러그인 무작정 해드린다 진행해봅니다.

    Date2015.12.09 Category고급강의실 By천무 Views944 Votes0
    Read More
  21. [RPGMV Plugin 영상] 한글이름 입력, 전투속도증가 플러그인!!

    Date2015.12.09 Category고급강의실 By천무 Views2293 Votes0
    Read More
Board Pagination Prev 1 2 3 4 Next
/ 4


[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)