Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Simple Splash Screen™ ★
- ================================================================================
- Script Information:
- ====================
- This script simply allows ONE splash screen to be displayed before the title
- scene.
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- ================================================================================
- 1. You must give credit to "Dekita"
- 2. You are NOT allowed to repost this script.(or modified versions)
- 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
- 4. You are NOT allowed to use this script for Commercial games.
- 5. ENJOY!
- "FINE PRINT"
- By using this script you hereby agree to the above terms and conditions,
- if any violation of the above terms occurs "legal action" may be taken.
- Not understanding the above terms and conditions does NOT mean that
- they do not apply to you.
- If you wish to discuss the terms and conditions in further detail you can
- contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
- ================================================================================
- History:
- =========
- D /M /Y
- 14/12/2o12 - started and finished,
- ================================================================================
- Known Bugs:
- ============
- N/A
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- If a new bug is found please contact me at
- http://dekitarpg.wordpress.com/
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- Place the image you want to use for your splash screen inside the
- "Graphics/System/" folder and rename Splash_Name (below) to your image name.
- =end #==========================================================================#
- module Dekita_SPLASH
- Use_Splash_Screen = true # << self explanitory.
- Splash_Name = "D-RPG" # Name of the file in the "Graphics/System/" folder.
- Splash_Location = [120, 180] # [ x , y ]
- Splash_Zoom = [0.50, 0.40] # [ width , height ]
- #Splash_Tone= [Use?, red, green, blue, grey ]
- Splash_Tone = [true, 100, 0, 0, 0]
- Skip_Button = :C # Button to skip the splash screen before it finishes.
- Duration = 180 # The time the splash screen lasts after its fully visible.
- Fade_Duration = 60 # The fadeout duration.
- end
- $imported = {} if $imported.nil?
- $imported[:Dekita_Simple_Splash_Screen] = true
- #==============================================================================
- module SceneManager
- #==============================================================================
- class << self ; alias first_scene_class_SPLASH first_scene_class ; end
- def self.first_scene_class
- return first_scene_class_SPLASH if !Dekita_SPLASH::Use_Splash_Screen
- $BTEST ? Scene_Battle : Scene_SPLASH
- end
- end
- #==============================================================================
- class Scene_SPLASH < Scene_Base
- #==============================================================================
- include Dekita_SPLASH
- def initialize
- create_splash
- @splash_timer = 0
- end
- def create_splash
- st = Splash_Tone
- @splash = Sprite.new
- if $imported[:Dekita_Pokémon_Title_DO_NOT_USE]
- @splash.bitmap = Cache.poketitle(Splash_Name)
- else
- @splash.bitmap = Cache.system(Splash_Name)
- end
- @splash.opacity = 0
- @splash.z = 201
- @splash.zoom_x = Splash_Zoom[0]
- @splash.zoom_y = Splash_Zoom[1]
- @splash.x = Splash_Location[0]
- @splash.y = Splash_Location[1]
- @splash.tone = Tone.new(st[1], st[2], st[3], st[4]) if st[0]
- end
- def terminate
- super
- @splash.bitmap.dispose
- @splash.dispose
- end
- def update
- super
- @splash.opacity += 1
- goto_title if Input.press?(Skip_Button)
- if @splash.opacity >= 255
- @splash_timer += 1
- goto_title if @splash_timer >= Duration
- end
- end
- def goto_title
- Graphics.fadeout(Fade_Duration)
- SceneManager.goto(Scene_Title)
- end
- end
- #===============================================================================#
- # - SCRIPT END - #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement