VX Advanced Title Screen Version 1.6
By Near
Introduction
This script is to add a bit of flare(and ease)to your title screen.
It allows you to specify the filename of you title background, so
that if you decide that you want to change you title background
halfway through your game, you can.
Features
Screenshots
None yet. Just put the script in a blank project, and playtest.
Demo
http://nearsrmxp.uuuq.com/myscripts/Nea ... 0Title.zip
Direct link, thank you Zymic webhosting!
Script
New Color script! :
[rgss]Â
def red(alpha=255)
 return Color.new(255,0,0,alpha)
end
def blue(alpha=255)
 return Color.new(0,0,255,alpha)
end
def green(alpha=255)
 return Color.new(0,255,0,alpha)
end
def purple(alpha=255)
 return Color.new(255,0,255,alpha)
end
def cyan(alpha=255)
 return Color.new(0,255,255,alpha)
end
def yellow(alpha=255)
 return Color.new(255,255,0,alpha)
end
Â
[/rgss]
Main script :
[rgss]Â
#============================================================================
# * Near's Advanced Title Screen
#----------------------------------------------------------------------------
# Â Â Â This script is to add a bit of flare(and ease)to your title screen.
# It allows you to specify the filename of you title background, so that
# if you decide that you want to change you title background halfway through
# your game, you can.
#============================================================================
Â
$title_bg = "Title" # Name of the title bitmap
$title_type = "pushstart" # Type of Title Screen ("normal", "pushstart")
#------------------
$pstart_text = "Press Start, you fool!"
$pstart_color = red
$pstart_y = 320
Â
class Scene_Title < Scene_Base
 def create_title_graphic
  @sprite = Sprite.new
  @sprite.bitmap = Cache.system($title_bg.to_s)
  if $title_type == "pushstart"
   @start = Sprite.new
   @start.z = 999
   @start.bitmap = Bitmap.new(640, 480)
   @start.bitmap.font.color = $pstart_color
   rect = Rect.new(-50,$pstart_y,640,32)
   @start.bitmap.draw_text(rect, $pstart_text, 1)
  end
 end
 def create_command_window
  s1 = Vocab::new_game
  s2 = Vocab::continue
  s3 = Vocab::shutdown
  @command_window = Window_Command.new(172, [s1, s2, s3])
  @command_window.x = (544 - @command_window.width) / 2
  @command_window.y = 288
  if @continue_enabled           # If continue is enabled
   @command_window.index = 1       # Move cursor over command
  else                   # If disabled
   @command_window.draw_item(1, false)  # Make command semi-transparent
  end
  if $title_type == "pushstart"
   @command_window.active = @command_window.visible = false
  else
   @command_window.openness = 0
   @command_window.open
  end
 end
 def update
  super
  @command_window.update
  if $title_type == "pushstart"
   @start.update unless @start.disposed?
   update_start unless @start.disposed?
  end
  if Input.trigger?(Input::C)
   if @command_window.active
    case @command_window.index
    when 0   #New game
     command_new_game
    when 1   # Continue
     command_continue
    when 2   # Shutdown
     command_shutdown
    end
   else
    @command_window.active = @command_window.visible = true
    @command_window.openness = 0
    @command_window.open
    @start.dispose
   end
  end
 end
 def update_start
  @fade_out = true if @start.opacity == 255
  @fade_out = false if @start.opacity == 50
  if @fade_out
   @start.opacity -= 5
  else
   @start.opacity += 5
  end
 end
end
#============================================================================
#             Copyright © Near 2009
#============================================================================
Â
Â
[/rgss]
Instructions
The script is just plug 'n' play, just look at the configuration in the script right under
the header.
News
I added a text color option for the press start text, and the press start text now fades in and out! Version 2 will be out when I feel like making it!
FAQ
No questions yet...
Compatibility
None known.
Author's Notes
A new version will come out soon, if people like this enough. It will have an option for
an animated title screen, and the way it animates it.
Terms and Conditions
Free for use of any kind, just don't claim as your own, and I must be credited.
By Near
Introduction
This script is to add a bit of flare(and ease)to your title screen.
It allows you to specify the filename of you title background, so
that if you decide that you want to change you title background
halfway through your game, you can.
Features
- Change title bg easily
- Two title types (more types to come)
- Allows for a 'Push start' image.
- Now has a 'Push start' text color!
Screenshots
None yet. Just put the script in a blank project, and playtest.
Demo
http://nearsrmxp.uuuq.com/myscripts/Nea ... 0Title.zip
Direct link, thank you Zymic webhosting!
Script
New Color script! :
[rgss]Â
def red(alpha=255)
 return Color.new(255,0,0,alpha)
end
def blue(alpha=255)
 return Color.new(0,0,255,alpha)
end
def green(alpha=255)
 return Color.new(0,255,0,alpha)
end
def purple(alpha=255)
 return Color.new(255,0,255,alpha)
end
def cyan(alpha=255)
 return Color.new(0,255,255,alpha)
end
def yellow(alpha=255)
 return Color.new(255,255,0,alpha)
end
Â
[/rgss]
Main script :
[rgss]Â
#============================================================================
# * Near's Advanced Title Screen
#----------------------------------------------------------------------------
# Â Â Â This script is to add a bit of flare(and ease)to your title screen.
# It allows you to specify the filename of you title background, so that
# if you decide that you want to change you title background halfway through
# your game, you can.
#============================================================================
Â
$title_bg = "Title" # Name of the title bitmap
$title_type = "pushstart" # Type of Title Screen ("normal", "pushstart")
#------------------
$pstart_text = "Press Start, you fool!"
$pstart_color = red
$pstart_y = 320
Â
class Scene_Title < Scene_Base
 def create_title_graphic
  @sprite = Sprite.new
  @sprite.bitmap = Cache.system($title_bg.to_s)
  if $title_type == "pushstart"
   @start = Sprite.new
   @start.z = 999
   @start.bitmap = Bitmap.new(640, 480)
   @start.bitmap.font.color = $pstart_color
   rect = Rect.new(-50,$pstart_y,640,32)
   @start.bitmap.draw_text(rect, $pstart_text, 1)
  end
 end
 def create_command_window
  s1 = Vocab::new_game
  s2 = Vocab::continue
  s3 = Vocab::shutdown
  @command_window = Window_Command.new(172, [s1, s2, s3])
  @command_window.x = (544 - @command_window.width) / 2
  @command_window.y = 288
  if @continue_enabled           # If continue is enabled
   @command_window.index = 1       # Move cursor over command
  else                   # If disabled
   @command_window.draw_item(1, false)  # Make command semi-transparent
  end
  if $title_type == "pushstart"
   @command_window.active = @command_window.visible = false
  else
   @command_window.openness = 0
   @command_window.open
  end
 end
 def update
  super
  @command_window.update
  if $title_type == "pushstart"
   @start.update unless @start.disposed?
   update_start unless @start.disposed?
  end
  if Input.trigger?(Input::C)
   if @command_window.active
    case @command_window.index
    when 0   #New game
     command_new_game
    when 1   # Continue
     command_continue
    when 2   # Shutdown
     command_shutdown
    end
   else
    @command_window.active = @command_window.visible = true
    @command_window.openness = 0
    @command_window.open
    @start.dispose
   end
  end
 end
 def update_start
  @fade_out = true if @start.opacity == 255
  @fade_out = false if @start.opacity == 50
  if @fade_out
   @start.opacity -= 5
  else
   @start.opacity += 5
  end
 end
end
#============================================================================
#             Copyright © Near 2009
#============================================================================
Â
Â
[/rgss]
Instructions
The script is just plug 'n' play, just look at the configuration in the script right under
the header.
News
I added a text color option for the press start text, and the press start text now fades in and out! Version 2 will be out when I feel like making it!
FAQ
No questions yet...
Compatibility
None known.
Author's Notes
A new version will come out soon, if people like this enough. It will have an option for
an animated title screen, and the way it animates it.
Terms and Conditions
Free for use of any kind, just don't claim as your own, and I must be credited.