고급강의실
2014.06.19 08:15

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

조회 수 1032 추천 수 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천무 Views7392 Votes1
    read more
  2. 맵으로 이동되었을때 자동으로 타이머 실행

    Date2014.05.01 Category중급강의실 By물판 Views1191 Votes1
    Read More
  3. RPG XP에서 소를 집적타보자!! -일명 음모XP - (자작 이벤트)

    Date2014.06.09 Category중급강의실 ByBY_RAIN Views1168 Votes0
    Read More
  4. 잠와서 실수가 많은 저 게임만들고 싶어요 -1- 데이터베이스-1-

    Date2014.06.14 Category중급강의실 By시버암 Views1166 Votes0
    Read More
  5. RPG Maker VX ACE - Skill 데이터 구조.

    Date2014.10.14 Category고급강의실 ByJunkMan Views1157 Votes0
    Read More
  6. [RPGMV Plugin 영상] 무작정 해보기 "심플ATB"

    Date2015.12.20 Category고급강의실 By천무 Views1156 Votes0
    Read More
  7. 아이템 한번에 받기

    Date2014.08.24 Category고급강의실 By 운 Views1147 Votes0
    Read More
  8. 뮤's 실전 스크립팅 강좌 [3. 기초 문법 다지기 (하)]

    Date2013.09.16 Category고급강의실 By마니아 Views1145 Votes0
    Read More
  9. 데스티니 패치 연구 1~3

    Date2012.05.05 Category중급강의실 By나라뜨 Views1137 Votes0
    Read More
  10. RPG Maker VX ACE - Actor 데이터 구조

    Date2014.10.06 Category고급강의실 ByJunkMan Views1064 Votes0
    Read More
  11. VX Ace 픽쳐 메뉴 예제(V1.01)

    Date2015.03.18 Category중급강의실 ByAPED Views1059 Votes0
    Read More
  12. RPG Maker VX ACE - System 데이터 구조

    Date2014.10.15 Category고급강의실 ByJunkMan Views1057 Votes0
    Read More
  13. 배틀창 이름 체력 레벨 좌표 변경하기

    Date2014.06.19 Category고급강의실 BySeed Views1032 Votes0
    Read More
  14. [MV] Iavra Splash Video(스플래시/인트로영상 제작 시 스킵기능 부여 플러그인)

    Date2017.09.11 Category초급강의실 By이니군 Views1009 Votes0
    Read More
  15. 픽쳐 서서히 등장! 픽쳐 서서히 퇴장!

    Date2015.04.29 Category중급강의실 By치와도라 Views965 Votes2
    Read More
  16. 네코플에서 VXA 선택지 잘리는 버그 해결하는법

    Date2017.06.22 Category중급강의실 By심심치 Views924 Votes2
    Read More
  17. 엽여비의 야매강좌- VXA : 기초강좌-VXA의 이해

    Date2015.10.09 Category중급강의실 By엽여비소엽 Views868 Votes0
    Read More
  18. RPG Maker VX ACE - Weapon 데이터 구조.

    Date2014.10.15 Category고급강의실 ByJunkMan Views848 Votes0
    Read More
  19. [RGSS2 강좌] 기초편 1. 소개

    Date2016.01.10 Category고급강의실 By천무 Views847 Votes0
    Read More
  20. RPG Maker VX ACE - Classes 데이터 구조.

    Date2014.10.07 Category고급강의실 ByJunkMan Views836 Votes0
    Read More
  21. RPG Maker VX ACE - Item 데이터 구조.

    Date2014.10.14 Category고급강의실 ByJunkMan Views835 Votes0
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 Next
/ 10






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

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