Change Font (Use multiple fonts)

Status
Not open for further replies.

Alexmaru

Villager
Member
Joined
May 26, 2012
Messages
7
Reaction score
0
First Language
Danish
Primarily Uses
Hey guys,

I am working on my game Kingdom Hearts: Battle of the Heart, and there is one thing I'd like to change - but just do not know how.

I want multiple fonts in my game! Not just one but 3-4 different fonts. So when I make an EVENT, I could change my font. Is this possible?

(I know how to change my font in the MAIN script, but not how i can add multiple fonts).

Example;

Use this in my intro: http://www.fonts101....dianScript.aspx

Verdana in the text message boxes

Arial in the credits.

- Alexmaru
 

Levi

Veteran
Veteran
Joined
Jun 7, 2012
Messages
798
Reaction score
143
First Language
English
Primarily Uses
I believe that it's possible. But this needs a script to be done.

I've seen it done before, where you can change global font mid-game, so I know that there is a script out there. I haven't seen it myself.

It isn't on the Master Script list [see below] so it could be a private script, or maybe it just hasn't found it's way to the list yet.

http://rmvxace.wikia.com/wiki/RPG_Maker_VX_Ace_Master_Script_List

Someone is bound to know of it though.
 

mobychan

CodeMaster
Veteran
Joined
Mar 23, 2012
Messages
297
Reaction score
45
First Language
German
Primarily Uses
which windows do you want to be affected?

this little scriptlet would work for the message window on the map:



Code:
class Scene_Map < Scene_Base
  attr_accessor :message_window
end

class Game_Interpreter
  def change_font(fontname)
    SceneManager.scene.message_window.contents.font.name = fontname
  end
end
depending on which windows you need it would have to be adjusted
 

amerk

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,433
Reaction score
495
First Language
English
Primarily Uses
I hope this doesn't constitute as hi-jacking a topic, and if it does then my apologies. I'm just not sure if this can be done the same as part of the OP's request, or needs to be handled differently.

Anyways, what I'd like is a way to have one font for everything menu related, and one font for text-based events.

Basically, anything I type as a means of events (ie., show text) would be one font, and everything else (title commands, menu/status, battle, etc) would be a different one.
 

Alexmaru

Villager
Member
Joined
May 26, 2012
Messages
7
Reaction score
0
First Language
Danish
Primarily Uses
I hope this doesn't constitute as hi-jacking a topic, and if it does then my apologies. I'm just not sure if this can be done the same as part of the OP's request, or needs to be handled differently.

Anyways, what I'd like is a way to have one font for everything menu related, and one font for text-based events.

Basically, anything I type as a means of events (ie., show text) would be one font, and everything else (title commands, menu/status, battle, etc) would be a different one.
Yes, it is also what I wanted :)

But I have an intro where I want a third font (This one: http://www.fonts101....dianScript.aspx) So i also need how i can change the message font right afther the intro :)

which windows do you want to be affected?

this little scriptlet would work for the message window on the map:



Code:
class Scene_Map < Scene_Base
attr_accessor :message_window
end

class Game_Interpreter
def change_font(fontname)
SceneManager.scene.message_window.contents.font.name = fontname
end
end
depending on which windows you need it would have to be adjusted
How do is use it? :)
 
Last edited by a moderator:

mobychan

CodeMaster
Veteran
Joined
Mar 23, 2012
Messages
297
Reaction score
45
First Language
German
Primarily Uses
oh, sorry, forgot about that, just type



Code:
change_font(fontname)
in a script call in an event with fontname being the name of the font you want

So you want the intro to have a special font and most of the other stuff the same?

I'd make the intro font the "special" one.

How did you do your intro?

if it's only with show text you can use my scriptlet before you show any text ^^
 

Lunarea

Artist
Global Mod
Joined
Mar 1, 2012
Messages
8,840
Reaction score
7,797
@amerk:

Yes, it is hijacking the topic a bit, but I'll let it slide since it's somewhat on topic.

You can try using Yanfly's Message script. It allows you to set a font for the text messages, and you can set a different font for the menus etc via Main. At least, that's what I've done for my project.
 

amerk

Veteran
Veteran
Joined
Mar 13, 2012
Messages
1,433
Reaction score
495
First Language
English
Primarily Uses
Alright, thanks Lunarea. And thanks to you as well, Mobychan. Both methods seem pretty decent, so I'll test them out.
 

Alexmaru

Villager
Member
Joined
May 26, 2012
Messages
7
Reaction score
0
First Language
Danish
Primarily Uses
Thanks guys :)

I think i use Yanfly's Message script for now :) If any1 know a script so i can get my text in the center automatic - would be great! :D
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Try to request one in script requests if there isn't one :)

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Last edited by a moderator:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top