RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Moving HP/SP Text? [RESOLVED]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
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?
« Last Edit: October 04, 2009, 09:25:10 PM by Iari »
That's good to know.

**
Rep: +0/-0Level 84
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.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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.

**
Rep: +0/-0Level 84
I don't know which script it is!  It's part of the basic game!
That's good to know.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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:

Code: [Select]
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:
Code: [Select]
    y += 4

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

**
Rep: +0/-0Level 84
Thanks, Modern Algebra!  That worked!
That's good to know.