Hi everyone, I’ve been learning how to program in Java and Actionscript lately, and because these are what are called “object-oriented” programming languages, understanding how they function has helped me a whole lot with understanding RGSS2, the programming framework that RMVX uses. After going through RMVX tonight, I finally started getting a good grasp on how RGSS2 works, so I’ll be posting some basic scripting tutorials in the near future.
In the meantime, here’s a very, very simple script on how to use a different font for your game’s text that I got from TheMize18’s video on YouTube (and he credits it to the community on RPGmakervx.net, which is listed on the left-hand side of this blog, actually).
Changing Your Game’s Default Font
Step 1: Open the Script Editor in the Tools menu (you can also hit F11 or click on the pencil icon next to the music note icon along the top of the editor window).
Step 2: In the script list along the left-hand side of the Script Editor, scroll down to the bottom where it says “Main Process.” Under that is “Main.” Left-click on Main to open it.
Step 3: Paste the following line of code right under where it says “begin” but above “Graphics.freeze.”
Font.default_name = (” “)
Between the two quotation marks, type in the full name of the font you want to use (the font name is case sensitive). For example, if you want to use Times New Roman as your font, the code will look like this:
Font.default_name = (“Times New Roman”)
This will tell RMVX to go and use this font instead of the default font that comes with the editor. Now, you just need to put the font you want to use in the right folder so RMVX can find it.
Step 4: On your hard disk, navigate to the menu where you have RMVX’s common files. In a Windows XP environment (what I’m using), go to Program Files, then open Common Files, then Enterbrain, then RGSS2, then RPGVX, then Fonts. Next, copy the font file you want to use into the Fonts folder under RPGVX (find the font you want to use online or open a new window and navigate to wherever your OS stores fonts; in XP open the WINDOWS folder and then the folder called Fonts; you’ll find a ton in there to use).
Step 5: Save your game and test it out. The font for your game should now be set to whatever font you chose. That’s it!


3 comments
Comments feed for this article
April 17, 2009 at 8:12 am
Ocean's Dream
Yes, the font thing is good, I just changed mine. I look forward to seeing the RGSS2 scripting tutorials, I could learn from those.
I added this to my blog list, I didn’t realize it wasn’t there.
April 17, 2009 at 4:15 pm
gbasich
Yeah, I just realized last night that RGSS2 DOES provide you with enough of a class library (in the Ruby programming sense) and good comments in the code to enable you to really rework RPG Maker games. It’s a nice little API to have access to, and Ruby is a LOT easier to follow for beginners than languages like C++, Java or Actionscript. I can follow Java and Actionscript now, so understanding Ruby is pretty easy by comparison. You just need to understand what all the classes and methods do, which is what takes time to learn.
The “big” thing I figured out is that it’s pretty easy to alter the math behind all the battle formulas. You just have to take care not to change it so much that it doesn’t work with the Game_Interpreter class (which is the RGSS2 class that processes all the information that you enter into the RMVX events editor) and the database.
April 17, 2009 at 4:16 pm
gbasich
Oh, and thanks for the blog list add! I just started updating this blog again after starting to get comments recently.