Project1

标题: 战斗状态没办法显示背景 [打印本页]

作者: kinte    时间: 2007-7-14 17:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: kinte    时间: 2007-7-14 17:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: kinte    时间: 2007-7-14 18:25
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-7-14 18:29
把 opacity 设置为0 算隐藏么?
作者: kinte    时间: 2007-7-14 18:42
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-7-14 19:16
调整Z坐标就行了吧 要去掉窗口的话就描绘不了 hp sp等等了。
作者: guoyou    时间: 2007-7-14 21:23
提示: 作者被禁止或删除 内容自动屏蔽
作者: kinte    时间: 2007-7-14 21:30
提示: 作者被禁止或删除 内容自动屏蔽
作者: kinte    时间: 2007-7-14 22:04
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-7-14 22:24
要改的是什么的 Z 坐标?
作者: kinte    时间: 2007-7-14 22:32
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-7-14 22:53
那个是排列的问题啊。。应该改X和Y坐标。
作者: kinte    时间: 2007-7-14 23:21
提示: 作者被禁止或删除 内容自动屏蔽
作者: K’    时间: 2007-7-14 23:30
Window_BattleStatus
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors
      actor_x = i * 160 + 4
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, actor_x, 32, 120)
      draw_actor_sp(actor, actor_x, 64, 120)
      if @level_up_flags
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end



改为

[quote]  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors
      actor_y = i * 60 + 4 #60可以改为想要的数字 是间隔
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, 32, actor_y, 120)
      draw_actor_sp(actor, 32, actor_y+32, 120)

      if @level_up_flags
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end

[/quote]
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: kinte    时间: 2007-7-15 00:06
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1