Help - Search - Members - Calendar
Full Version: Pre-Title Screen
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
hawkeye7704
Is there a way to create a pre-title screen or scene before the default title screen appears?
amerk
A script would be the only way to do that. There's one that I know of on the VX site by IMP1:

http://www.rpgmakervx.net/index.php?showtopic=38336

I'm not sure how good it is, but may be worth checking out. I'm sure there are other similar ones, but I only came across this on a quick google search.
Kaust
Here's one written by our own TheBen (http://www.rpgrevolution.com/forums/index.php?showtopic=52521), along with a vid of how to install it (http://www.youtube.com/watch?v=6gSZ1oCcFQ8).
hawkeye7704
These are great. But they're both for scenes. Is there one that is strictly for adding a picture with some music?
Shaddow
With a scene you can add a picture with some music, you just simply have to have it load the scene, have no hero loaded starting off, load a picture and play the music, then put in an event to go to title screen when a button is hit. I hope I explained that clearly, a little sick today, and my head is not all there.
hawkeye7704
I was in the process of doing that but if I hit the X button it called the menu and I didn't want that. But it's all good. I actually found this script by Vlue L. Maynara and it does just what I need.

Title
#--------- Pretitle script ------------------------------------------#
# - A script to display up to three images before the title menu #
# - Configurable! Woot! #
# ###Read this before using### #
# - Pictures to be displayed must be placed in the \Graphics\System #
# folder #
# - Audio files to be played must be placed in the \Audio\BGM folder #
# - Must change "$scene = Scene_Title.new" under Main to #
# "$scene = Scene_Pretitle.new" #
# - To call script (why? o.0) use "$scene = Scene_Pretitle.new" #
# #
# Disclaimer? Give credit where credit is due #
#-------------------------Script written by: Vlue L. Maynara---------#

class Scene_Pretitle < Scene_Base

###Config###
###Failure to comply with rules will result in script failure###
#Skip pretitles?
PRETITLE_SKIP = false
#Fadein (frames)
PRETITLE_TRANSITION = 0
#How long to display (frames)
PRETITLE_WAIT = 100
#Fadeout (frames)
PRETITLE_FADEOUT = 0
#Music to be played, nil in none (Filename must be in quotes, ex. "Scene1")
PRETITLE_MUSIC = "nil"
#Volume of Music (%)
PRETITLE_VOLUME = 100
#Pitch of Music (50-150)
PRETITLE_PITCH = 100
#First file to load, nil if none (Filename must be in quotes, ex. "Gameover")
PRETITLE_FILE = "nil"
#Second file to load, nil if none (Filename must be in quotes, ex. "Balloon")
PRETITLE_FILE2 = "nil"
#Third file to load, nil if none (Filename must be in quotes, ex. "Title")
PRETITLE_FILE3 = "nil"
###End Config###

#Script start#

def main
if $BTEST # If battle test
$scene = Scene_Title.new # Start battle test
else # If normal play
super # Usual main processing
end
end

def start
if PRETITLE_SKIP
$scene = Scene_Title.new
elsif
create_pretitle_1
end
end

def create_pretitle_1
if PRETITLE_FILE != nil
if PRETITLE_MUSIC != nil
Audio.bgm_play("Audio/BGM/" + PRETITLE_MUSIC, PRETITLE_VOLUME, PRETITLE_PITCH)
end
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.system(PRETITLE_FILE)
Graphics.transition(PRETITLE_TRANSITION)
Graphics.wait(PRETITLE_WAIT)
Graphics.fadeout(PRETITLE_FADEOUT)
@sprite1.bitmap.dispose
@sprite1.dispose
create_pretitle_2
elsif
create_pretitle_2
end
end

def create_pretitle_2
if PRETITLE_FILE2 != nil
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.system(PRETITLE_FILE2)
Graphics.fadein(PRETITLE_TRANSITION)
Graphics.wait(PRETITLE_WAIT)
Graphics.fadeout(PRETITLE_FADEOUT)
@sprite1.bitmap.dispose
@sprite1.dispose
create_pretitle_3
elsif
create_pretitle_3
end
end

def create_pretitle_3
if PRETITLE_FILE3 != nil
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.system(PRETITLE_FILE3)
Graphics.fadein(PRETITLE_TRANSITION)
Graphics.wait(PRETITLE_WAIT)
Graphics.fadeout(PRETITLE_FADEOUT)
@sprite1.bitmap.dispose
@sprite1.dispose
$scene = Scene_Title.new
elsif
$scene = Scene_Title.new
end
end
end
#End Script#
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.