RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Lethrface's Splash Screen

0 Members and 1 Guest are viewing this topic.

****
Sperm Donor Extraordinaire
Rep:
Level 77
Bronze - GIAW 9
I saw TDS's splash screen script and it reminded me to get to work on mine for my game.  I started out not really knowing what I was doing since I am a complete RGSS noob but picked up some momentum as it was moving along.  I felt pretty accomplished by it so I thought that in spirit of my first COMPLETED script in which I started with a blank script page and built it from scratch, I would share it. 

Lethrface's Splash Screens
v1.0
Date: 4-16-2012

Features:
- Unlimited splash screens
- Play movies for your splash screens.

Script:
Code: [Select]

#==============================================================================
#   Lethrface's Splash Screen
#   v1.0
#   Date: 4-16-2012
#   My official website:
#   http://spriteresources.blogspot.com
#   Also visit:
#   http://www.creationasylum.net
#==============================================================================
#   Description: Shows an image or a movie before jumping to the title screen.
#==============================================================================
#   Import your splash images to the Title2 folder and your movies
#   as you normally would in the Movies folder. After that, modify the
#   values in the configuration module below by reading the comments
#   and following instructions.  The instructions are self explanatory
#   so you should have no problems.
#
#   This script should be compatible with any script unless it modifies
#   SceneManager's self.first_scene_class function.  If it does, I can not
#   insure it's functionality.
#
#   If you are unsure what format your movie is supposed to be in,
#   please read the help file included with RPG Maker VX Ace. 
#
#   I will not provide support to those who do not wish to follow directions.
#==============================================================================
#                         --NON-COMMERCIAL USE ONLY--
#   This script by Steven Wallace(Lethrface) is licensed under a
#   Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
#   Permissions beyond the scope of this license may be available at
#   http://spriteresources.blogspot.com/.
#
#                 Information about this license can be found at:
#               http://creativecommons.org/licenses/by-nc-nd/3.0/
#
#   This script is intended for use with Non-Commercial/Non-Monitary projects. 
#   If you wish to use this for commercial use or any project that has a
#   monitary attachment (such as donations, etc.), you just contact me before
#   you use this script for permission.
#==============================================================================
module LethrMod
  module SPLASH
    #===============================================================#
    #                  EDIT THE CONFIGURATION BELOW                 #
    #===============================================================#
   
    # Set the amount of time the splash image will remain on the
    # screen after fading in before fading out.
    LENGTH = 2
   
    # Set the number of splash screens you plan to use for your project. 
    # This can be any number of splash screens...but use them within reason...
    # Nobody wants to see 100 splash screens before seeing the title screen
    # and if they do, they are narcisists.
    TOTAL_SPLASH_IMAGES = 3
   
   
    SPLASH_IMAGES = {
   
    # Set the filename of the images and/or movies that you want to be used
    # for your splash screens.
    # You can add more past the three that you see now.  If you do, make sure
    # that the TOTAL_SPLASH_IMAGES count is set to the total you have here.
   
    # Use just the filename of the image or movie.
    # Your first one will always start with "0" as your first
    # Splash image.
    # ex. 0 => "filename", 
      0 => "Logo",
      1 => "Logo2",
      2 => "spacemovie1.theora",
    } # Do not delete this bracket
   
   
    MOVIE = {
   
    # Set which splash images are actually movies. 
    # Each entry corresponds with the images/movies assigned
    # in the SPLASH_IMAGES array.
    # Just like the SPLASH_IMAGES array, you can add more past the
    # three that you see now.  If here are more than three images
    # set in SPLASH_IMAGES, you add more variables to reflect
    # the number of values for SPLASH_IMAGES.
   
    # ex. 0 => false,            <== means it's an image
    # ex  0 => true,             <== it will be a movie.
    0 => false,
    1 => false,
    2 => true,
    }  # Do not delete this bracket
   
    # Do you want to see your Splash screens before your title screen when
    # you playtest?  True for yes, false for no.
    SHOW_PLAYTEST = true
   
   
    #===============================================================#
    #                DONT MODIFY ANYTHING BELOW THIS                #
    #===============================================================#
  end
end

module SceneManager
  def self.first_scene_class
    $BTEST ? Scene_Battle : Scene_Splash
  end
end


class Scene_Splash < Scene_Base
 
  def start
    super
    show_playtest = LethrMod::SPLASH::SHOW_PLAYTEST
    SceneManager.goto(Scene_Title) if $TEST and !show_playtest
    SceneManager.clear
    create_image
  end
 
  def create_image
    @current_splash = 0
    @splash = Sprite.new
    set_vars
  end
 
  def set_vars
    @phase = 0
    if LethrMod::SPLASH::MOVIE[@current_splash] == false
      @splash.bitmap = Cache.title2(LethrMod::SPLASH::SPLASH_IMAGES[@current_splash].to_s)
    end
    @splash.opacity = 0
    @splash_duration = LethrMod::SPLASH::LENGTH * 60
  end
 
  def update
    Graphics.update
    if LethrMod::SPLASH::TOTAL_SPLASH_IMAGES > 0
      if LethrMod::SPLASH::MOVIE[@current_splash] == true
        Graphics.play_movie("Movies/" + LethrMod::SPLASH::SPLASH_IMAGES[@current_splash])
        @phase = 3
      end
   
      if @phase == 0
        @splash.opacity += 10
        if @splash.opacity >= 255
          @phase = 1
        end
      end
   
      if @phase == 1
        if @splash_duration > 0
          @splash_duration -= 1
          return
        else
          @phase = 2
        end
      end
   
      if @phase == 2
        @splash.opacity -= 10
        if @splash.opacity <= 0
          @phase = 3
        end
      end
   
      if @phase == 3
        @current_splash += 1
        if @current_splash >= LethrMod::SPLASH::TOTAL_SPLASH_IMAGES
          SceneManager.goto(Scene_Title)
        else
          set_vars
        end
      end
    else
      SceneManager.goto(Scene_Title)
    end
   
  end
end


--NON-COMMERCIAL USE ONLY--
This script by Steven Wallace(Lethrface) is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Permissions beyond the scope of this license may be available at
http://spriteresources.blogspot.com/.

Information about this license can be found at:
http://creativecommons.org/licenses/by-nc-nd/3.0/

This script is intended for use with Non-Commercial/Non-Monitary projects. 
If you wish to use this for commercial use or any project that has a
monitary attachment (such as donations, etc.), you just contact me before
you use this script for permission.

This script may only be posted at the following places unless deemed otherwise
the creator.
http://spriteresources.blogspot.com
http://www.rmrk.net
http://www.creationasylum.net
http://www.rpgmaker.net

If it is found elsewhere, it is subject to legal action if the creator so chooses
to pursue it.
I am out of fucks to give.  In fact, I think you owe ME some fucks.  I have insufficient fucks in the fucking account.

****
Rep:
Level 71
Three splash screens in one day? Any way nice job.

****
Sperm Donor Extraordinaire
Rep:
Level 77
Bronze - GIAW 9
lol was there a third one?  I just saw TDS's and figured writing my own would be some good practice XD

Thanks.
I am out of fucks to give.  In fact, I think you owe ME some fucks.  I have insufficient fucks in the fucking account.

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
lol, yep, I posted a simple "scene before title" tutorial for opening logos or cutscenes before the title screen. Then TDS did his by coincidence and now a triple whopper here. At least people now have choices and no complaints that they can't figure out how to do it.




****
Sperm Donor Extraordinaire
Rep:
Level 77
Bronze - GIAW 9
lol, yep, I posted a simple "scene before title" tutorial for opening logos or cutscenes before the title screen. Then TDS did his by coincidence and now a triple whopper here. At least people now have choices and no complaints that they can't figure out how to do it.

lol Ooooh okay lol.  Man I wish I would have seen that tutorial cuz it would have saved me the trouble of figuring it out on my own lmao...but I guess maybe I learn more when I figure it out on my own?   lol.  But yes, I agree.  Choices are a good thing to have most certainly.

I am out of fucks to give.  In fact, I think you owe ME some fucks.  I have insufficient fucks in the fucking account.

**
Rep:
Level 56
Dragon agent
Great thing. One request though. Could you add possibility to play animation from Database (normal RM animation) over picture/movie and play sounds along with pictures? So we can achieve more advanced things, like in Jet's splashscreen script, which unfortunately doesn't allow for movies.
Rave Darkhog Darkhogini. PhD in scamwareology, learned at Stencil University LLC.