kurashi

Basic Movie Before Title [RGSS3]

Apr 27th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.14 KB | None | 0 0
  1. =begin
  2.   Name: Basic Movie Before Title
  3.   Author: Kio Kurashi
  4.   Code level: Begginner
  5.   Notes: Free for both Commercial and Non-Commercial projects.
  6.       Please provide credit to the author.
  7.      
  8.       This script provides a single unskipable movie clip before the title scene.
  9. =end
  10.  
  11. module Config
  12.   # Here is where you will define the name of the video located in
  13.   # the Movies folder of your project. Remember that RPG Maker only
  14.   # uses OGV format. As such the Extension can be left off in the name.
  15.   # Example:   IntroName = "TestVid"
  16.  
  17.   IntroName = "TestVid"
  18.  
  19.   # It can get tot be pretty annoying durring testing. Change this to false
  20.   # if you don't want to see the video everytime you playtest.
  21.  
  22.   TestView = true
  23.  
  24. end
  25.  
  26. ####### DO NOT EDIT BEYOND THIS POINT #######
  27. module SceneManager  
  28.   include Config
  29.   def self.first_scene_class
  30.     $BTEST ? Scene_Battle : TestView ? Scene_IntroClip : Scene_Title
  31.   end
  32. end
  33.  
  34. class Scene_IntroClip < Scene_Base  
  35. include Config
  36.   def start    
  37.     super
  38.     p "Playing Intro Movie"
  39.     Graphics.play_movie('Movies/' + IntroName) unless IntroName.empty?
  40.   end
  41. end
Add Comment
Please, Sign In to add comment