SlaveOfThaMind

Game Developer / Musician
Veteran
Joined
Jul 10, 2013
Messages
239
Reaction score
23
First Language
English
Primarily Uses
So I've got the splash screen logo set up for my game. It works beautifully.
I'm wondering though, if I would be able to add a sound effect along side the
picture? (such as a clock ticking)

here is the script in question

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Splash Screen VXA
# Author: Soulpour777
# Version 1
# Description: Creates a splash screen at the start of the game.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** SceneManager
#------------------------------------------------------------------------------
# This module manages scene transitions. For example, it can handle
# hierarchical structures such as calling the item screen from the main menu
# or returning from the item screen to the main menu.
#==============================================================================
module SceneManager
#--------------------------------------------------------------------------
# * Get First Scene Class
#--------------------------------------------------------------------------
def self.first_scene_class
$BTEST ? Scene_Battle : Scene_Splash
end
end

#==============================================================================
# ** Splash
#------------------------------------------------------------------------------
# This module manages the image shown as a splash screen.
#==============================================================================
module Splash
#--------------------------------------------------------------------------
# * Create Splash Image
#--------------------------------------------------------------------------
def self.create_splash_image
@splash = Plane.new
@splash.bitmap = Cache.system("Splash")
end
#--------------------------------------------------------------------------
# * Dispose Splash Image
#--------------------------------------------------------------------------
def self.dispose_splash_image
@splash.bitmap.dispose
@splash.dispose
end
end

class Scene_Splash < Scene_Base
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
def start
super
RPG::BGM.stop
RPG::BGS.stop
Graphics.transition(60)
Graphics.freeze
Splash.create_splash_image
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
super
Splash.dispose_splash_image
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
SceneManager.goto(Scene_Title)
Graphics.wait(120)
Graphics.fadeout(60)
end
#--------------------------------------------------------------------------
# * Execute Transition
#--------------------------------------------------------------------------
def perform_transition
Graphics.transition(30)
end
end
 
Last edited by a moderator:

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
366
First Language
English
Primarily Uses
this should do it

Code:
#--------------------------------------------------------------------------# * Start Processing#--------------------------------------------------------------------------def start  super  RPG::BGM.stop  RPG::BGS.stop  Graphics.transition(60)  Graphics.freeze  RPG::BGS.new("Clock", 100, 100).play  Splash.create_splash_imageend
 

SlaveOfThaMind

Game Developer / Musician
Veteran
Joined
Jul 10, 2013
Messages
239
Reaction score
23
First Language
English
Primarily Uses
this should do it

#--------------------------------------------------------------------------# * Start Processing#--------------------------------------------------------------------------def start super RPG::BGM.stop RPG::BGS.stop Graphics.transition(60) Graphics.freeze RPG::BGS.new("Clock", 100, 100).play Splash.create_splash_imageend
You are beautiful! Thanks =)

This is perfect!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,691
Reaction score
15,295
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Latest Threads

Latest Posts

Latest Profile Posts

While was working on one of the monsters that will appear in my horor game I may have made harold a Lovecraftian monster. (I used his head to keep things aligned.)
Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.

Forum statistics

Threads
115,923
Messages
1,094,046
Members
151,176
Latest member
yoshikosai
Top