Help - Search - Members - Calendar
Full Version: Text and Gauge Effects in Battle
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Ace Discussion
oshakashama
So, I recently got RPG Maker VX Ace and have been messing around with scripts and battle systems. There's something I'd like to try though.

The way things are set up in my project is that when TP (now called Trance) reaches the max, the character gains a State called Trance and changes the Attack command to Trance (kinda like a Limit Break System). While under a Trance State, I'd like one of two things to happen:

  • Text to appear in front of the gauge and sort of flash slowly. This meaning, when it appears it will be one color and gradually change to white and then gradually change back.
  • The gauge itself changes color and does a similar thing to what the text would do if it appeared.


Anybody know how to make either of these happen? I'm using "Syvkal's Menu Bars VXAce" to change how the gauges look in case anyone needs to know how the script is set up.


Also, if anyone can also solve this issue: The script above uses the following to draw the Text for HP, MP, TP, etc.

CODE
draw_text(x, y, 50, line_height, Vocab::tp_a)


When I try to change the line_height, the text just gets cut off, not resized. I'm only looking to do this for the Trance gauge. If anyone can solve this issue too, I'd be grateful.
Jens of Zanicuud
QUOTE (oshakashama @ Nov 12 2012, 04:59 AM) *
Also, if anyone can also solve this issue: The script above uses the following to draw the Text for HP, MP, TP, etc.

CODE
draw_text(x, y, 50, line_height, Vocab::tp_a)


When I try to change the line_height, the text just gets cut off, not resized. I'm only looking to do this for the Trance gauge. If anyone can solve this issue too, I'd be grateful.[/size]


As regards this, I can give you a hint.
replace this:

CODE
draw_text(x, y, 50, line_height, Vocab::tp_a)


with this:

CODE
old_font_size = contents.font.size #store previous font size
contents.font.size  = 12  #change this number to resize the font
draw_text(x, y, 50, line_height, Vocab::tp_a)
contents.font.size = old_font_size #restores previous font size


Replace that 12 with the desired font size and you should fix that problem smile.gif

Jens
oshakashama
Sorry for the extremely late reply, but thank you for the help! Things worked out exactly how I wanted. I do have another question if you don't mind helping.

Much like I wanted to resize the text to make it smaller, I wish to do so with the HP/MP/TP gauges (actually, just one). Is there a way to change the height of a single gauge? I've been using Yanfly Core Engine and Yanfly Battle Engine Core lately and it appears that one of the two (if not both) effect they way gauges are drawn. Can I change the height of a single gauge while using the Yanfly systems? Or would that be near impossible?

Thank you in advance!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.