Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Text and Gauge Effects in Battle
oshakashama
post Nov 11 2012, 07:59 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Undisclosed




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.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Jens of Zanicuud
post Nov 12 2012, 01:32 PM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




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


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
oshakashama
post Dec 6 2012, 08:01 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Undisclosed




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!
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 06:54 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker