Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------
- # SydoSplash Screen V2 - Made by: SYDONAY, Edits Made by Vindaca
- #--------------------------------------------------------------------------
- # Instruction: There is a customizable area below, and make sure all images
- # are imported to the Title1 folder of your project's Graphics folder.
- #
- # Script credits: SYDONAY (Gekido Entertainment) and Vindaca.
- # If you are going to use the script, credit the writer.
- # Script is allowed to be used both in commercial and non-commercial games.
- #--------------------------------------------------------------------------module SydoSplashScreen
- #==============================================================================
- # ** SydoSplashScreen
- #------------------------------------------------------------------------------
- # This module manages the customizable and the methods for the splash scene.
- #==============================================================================
- module SydoSplashScreen
- #==============================================================================
- # ** Specs
- #------------------------------------------------------------------------------
- # This module manages the customizable for the splash scene.
- #==============================================================================
- module Specs
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- # #
- # Start Customizable Area. #
- # #
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- # #
- # ONLY EDIT THE DESIGNATED AREAS. #
- # #
- #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#
- #============================================================================
- # * Splash Effects
- #============================================================================
- Splash_Effects = {
- # Image Name
- "Splash1" => { :sound_effects => ["Applause1", 74, 74],
- :fadein_time => 30,
- :wait => 200,
- :fadeout_time => 30,
- },
- "Splash2" => { :sound_effects => ["Applause1", 74, 74],
- :fadein_time => 30,
- :wait => 200,
- :fadeout_time => 30,
- },
- }
- end #<--- End of Specs Module================================================
- #==============================================================================
- # ** Methods
- #------------------------------------------------------------------------------
- # This module manages the methods for the splash scene.
- #==============================================================================
- module Methods
- include SydoSplashScreen::Specs
- def self.start_splashing
- @sprite = Sprite.new
- Graphics.fadeout(0)
- Splash_Effects.each_key { |i| splashin(i) }
- @sprite.dispose
- end
- def self.play_splash_se(index)
- sound_effect = "Audio/SE/" + Splash_Effects[index][:sound_effects][0]
- pitch = Splash_Effects[index][:sound_effects][1]
- volume = Splash_Effects[index][:sound_effects][2]
- Audio.se_play(sound_effect, pitch, volume)
- end
- def self.splashin(index)
- play_splash_se(index)
- @sprite.bitmap = Cache.title1(index)
- Graphics.fadein(Splash_Effects[index][:fadein_time])
- Graphics.wait(Splash_Effects[index][:wait])
- Graphics.fadeout(Splash_Effects[index][:fadeout_time])
- @sprite.bitmap.dispose
- end
- end #<--- End of Methods Module==============================================
- end #<--- End of SydoSplashScreen Module=======================================
- #==============================================================================
- # ** 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
- SydoSplashScreen::Methods::start_splashing
- $BTEST ? Scene_Battle : Scene_Title
- end
- end #<--- End of SceneManager Module===========================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement