The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Shibuya on March 31, 2007, 03:54:23 AM

Title: READ THIS....[RESOLVED]
Post by: Shibuya on March 31, 2007, 03:54:23 AM
uh....how do you change the font of your game...I nkow you change it in main but mine says something like this:#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
  # Prepare for transition
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Intro.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end
Title: Re: READ THIS....
Post by: :) on March 31, 2007, 04:12:01 AM
Replace main with this:


#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
 # Prepare for transition
 $defaultfonttype = $fontface = $fontname = Font.default_name = "Maiandra GD"
$defaultfontsize = $fontsize = Font.default_size = 22
 Graphics.freeze
 # Make scene object (title screen)
 $scene = Scene_Title.new
 # Call main method as long as $scene is effective
 while $scene != nil
   $scene.main
 end
 # Fade out
 Graphics.transition(20)
rescue Errno::ENOENT
 # Supplement Errno::ENOENT exception
 # If unable to open file, display message and end
 filename = $!.message.sub("No such file or directory - ", "")
 print("Unable to find file #{filename}.")
end

-----



then you should see what to change now.
Title: Re: READ THIS....
Post by: Shibuya on March 31, 2007, 04:35:31 AM
Quote from: Nouman on March 31, 2007, 04:12:01 AM
Replace main with this:


#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
  # Prepare for transition
  $defaultfonttype = $fontface = $fontname = Font.default_name = "Maiandra GD"
$defaultfontsize = $fontsize = Font.default_size = 22
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end

-----



then you should see what to change now.

Thanks Nouman!
Title: Re: READ THIS....
Post by: :) on March 31, 2007, 05:12:14 AM
Yep, No problem. =D
Solved? Add [RESOLVED] to topic title.