Main Menu
  • Welcome to The RPG Maker Resource Kit.

Moving HP/SP Text? [RESOLVED]

Started by Iari, October 04, 2009, 08:06:19 PM

0 Members and 1 Guest are viewing this topic.

Iari

To see what it is that's bothering me, look at this screenshot.
I'm using the Tankentai XP Battle system, which adds small bars underneath the HP/SP text.  As you can see, the HP bar and the SP text overlap slightly.  How do I move the SP text down further?
That's good to know.

Iari

I think you have misunderstood me.  I want to move the text saying "SP   747/747" down.  I know how to move the SP Bar the Tankentai system added already.
That's good to know.

modern algebra

Well, he's asking to see the script, because we need to know how it is drawn in order to tell you how to move it.

I'm guessing there's some draw_sp method that needs to be altered.

Iari

I don't know which script it is!  It's part of the basic game!
That's good to know.

modern algebra

Oh, I figured the Tankentai was altering the default. If it isn't then the following code ought to work (put it below all of your other scripts except for Main:


class Window_Base
  #--------------------------------------------------------------------------
  # * Draw SP
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------
  alias ma_iari_drawsp_lower_7jb3 draw_actor_sp
  def draw_actor_sp(actor, x, y, *args)
    y += 4
    ma_iari_drawsp_lower_7jb3 (actor, x, y, *args)
  end
end


Change this line:

    y += 4


to however much extra you want it to go down to. 4 means it will move down 4 pixels.

Iari

Thanks, Modern Algebra!  That worked!
That's good to know.