07-02-2009, 08:22 PM
(This post was last modified: 09-02-2024, 05:58 PM by DerVVulfman.)
Title Screen Replacer + Enhancer
Version: 1.0.1
Version: 1.0.1
Introduction
This script changes the title screen graphic to a new one of your choice. This script also allows developers to customise the look of their title graphic by adjusting the tone, blend, positioning among other things.
Note, you'll probably need to keep a "Title.png" in Graphics/System.
Features
- Set title graphic file name.
- Set graphic tone, blend, position, blurs, zoom, waves, angle, flip, etc..
Screenshots
Script
Code:
=begin
????????????????????????????????????????????????????????????????????????????????
? Title Screen Replacer + Enhancer ?
? Version 1.0.1 ?
? by PK8 ?
? July 2nd 2009 ?
? http://rmvxp.com ?
????????????????????????????????????????????????????????????????????????????????
? ? Table of Contents ?
? ?? Author's Notes - Line 15?20 ?
? ?? Introduction & Description - Line 22?27 ?
? ?? Features - Line 29?31 ?
? ?? This aliases the following... - Line 33?36 ?
????????????????????????????????????????????????????????????????????????????????
? ? Author's Notes ?
? I was developing this script last year but I never got to release it. After I?
? was finished making the MessageBack Changer + Enhancer script, I decided I ?
? wanted to try my hand at remaking this. I also wanted to experiment with this?
? script by adding some features users might like which mainly involves ?
? changing the look of the title screen graphic. ?
????????????????????????????????????????????????????????????????????????????????
? ? Introduction & Description ?
? This script changes the title screen graphic to a new one of your choice. ?
? This script also allows developers to customise the look of their title ?
? graphic by adjusting the tone, blend, positioning among other things. ?
? ?
? Note, you'll probably need to keep a "Title.png" in Graphics/System. ?
????????????????????????????????????????????????????????????????????????????????
? ? Features ?
? ? Set title graphic file name. ?
? ? Set graphic tone, blend, position, blurs, zoom, waves, angle, flip, etc.. ?
????????????????????????????????????????????????????????????????????????????????
? ? This aliases the following... ?
? create_title_graphic - Scene_Title ?
? update - Scene_Title ?
? dispose_title_graphic - Scene_Title ?
????????????????????????????????????????????????????????????????????????????????
=end
#===============================================================================
# ** Title Screen Replacer + Enhancer Customisation!
#-------------------------------------------------------------------------------
# Set the initial settings!
#===============================================================================
class PK8
# Title Screen Graphic file name? (Should be in Graphics/System)
Title = "Title.png"
# Graphic Tone? (Red, Green, Blue [-255 to 255], Grey [0 to 255])
Title_Tone = [0, 0, 0, 0]
# Graphic Position? (X, Y coordinates)
Title_Position = [0, 0]
# Graphic Zoom? (Width, Height) [100 denotes actual pixel size]
Title_Zoom = [100, 100]
# Blending (Type, Opacity, "Intensity")
Title_Blend = [0, 255, 0]
# Wave (Wave Amplitude, Wave Length [don't set it to 0], Wave Speed)
Title_Wave = [0, 0, 0]
# Set the angle of the graphic. (This is going to be tough to set up.)
Title_Angle = 0
# Flip graphic horizontally?
Title_Mirror = false
# Apply how much blur?
Title_Blur = 0
# Radial Blur (angle [0 to 360], division [2 to 100])
Title_RadialBlur = [0, 2]
end
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
# This class performs the title screen processing.
#==============================================================================
class Scene_Title < Scene_Base
alias pk8_tse_create_title_graphic :create_title_graphic
alias pk8_tse_dispose_title_graphic :dispose_title_graphic
alias pk8_tse_update :update
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
pk8_tse_update
@bg.update
@sprite.update
end
#--------------------------------------------------------------------------
# * Create Title Graphic
#--------------------------------------------------------------------------
def create_title_graphic
pk8_tse_create_title_graphic
# Clearing @sprite bitmap and disposing sprite.
@sprite.bitmap.clear
@sprite.dispose
# Creating background (for blending purposes)
@bg = Sprite.new
@bg.bitmap = Cache.system(PK8::Title)
@bg.tone = Tone.new(PK8::Title_Tone[0], PK8::Title_Tone[1],
PK8::Title_Tone[2], PK8::Title_Tone[3])
@bg.x = PK8::Title_Position[0]
@bg.y = PK8::Title_Position[1]
@bg.zoom_x = PK8::Title_Zoom[0] * 0.01
@bg.zoom_y = PK8::Title_Zoom[1] * 0.01
@bg.color = Color.new(PK8::Title_Blend[2], PK8::Title_Blend[2],
PK8::Title_Blend[2], PK8::Title_Blend[1])
@bg.wave_amp = PK8::Title_Wave[0]
@bg.wave_length = PK8::Title_Wave[1]
@bg.wave_speed = PK8::Title_Wave[2]
@bg.angle = PK8::Title_Angle
@bg.mirror = PK8::Title_Mirror
PK8::Title_Blur.times do
@bg.bitmap.blur
end
@bg.bitmap.radial_blur(PK8::Title_RadialBlur[0], PK8::Title_RadialBlur[1])
# Recreating sprite, bitmap and adding effects
@sprite = Sprite.new
@sprite.bitmap = Cache.system(PK8::Title)
@sprite.tone = Tone.new(PK8::Title_Tone[0], PK8::Title_Tone[1],
PK8::Title_Tone[2], PK8::Title_Tone[3])
@sprite.x = PK8::Title_Position[0]
@sprite.y = PK8::Title_Position[1]
@sprite.zoom_x = PK8::Title_Zoom[0] * 0.01
@sprite.zoom_y = PK8::Title_Zoom[1] * 0.01
@sprite.blend_type = PK8::Title_Blend[0]
@sprite.opacity = PK8::Title_Blend[1]
@sprite.wave_amp = PK8::Title_Wave[0]
@sprite.wave_length = PK8::Title_Wave[1]
@sprite.wave_speed = PK8::Title_Wave[2]
@sprite.angle = PK8::Title_Angle
@sprite.mirror = PK8::Title_Mirror
PK8::Title_Blur.times do
@sprite.bitmap.blur
end
@sprite.bitmap.radial_blur(PK8::Title_RadialBlur[0],
PK8::Title_RadialBlur[1])
end
#--------------------------------------------------------------------------
# * Dispose of Title Graphic
#--------------------------------------------------------------------------
def dispose_title_graphic
pk8_tse_dispose_title_graphic
@bg.bitmap.dispose
@bg.dispose
end
end
Instructions
Find Line 44 and start customising how the graphic looks.
FAQ
No questions so far...
Compatibility
This aliases:
create_title_graphic and dispose_title_graphic from Scene_Title
Credits and Thanks
No credits being given.
Author's Notes
I was developing this script last year but I never got to release it. After I was finished making the MessageBack Changer + Enhancer script, I decided I wanted to try my hand at remaking this. I also wanted to experiment with this script by adding some features users might like which mainly involves changing the look of the title screen graphic.
Terms and Conditions
This script is exclusive to RMVXPUniverse.