KuickSplasher XP
#1
KuickSplasher XP

by Kyonides


Introduction

You know what a splash screen is so feel free to use my script to get some pictures displayed on screen! Grinning

There are 3 CONSTANTS that you can edit to adjust either the time the transition will last or how long the image will be on screen. You can also add as many pictures as you need, if you know how an Array object works in Ruby. Happy with a sweat

I just made this script because someone showed up asking for a simple splash screen script. Tongue sticking out

Code:
# * KuickSplasher XP * #
#   Scripter : Kyonides Arkanthes
#   v0.5.0 - 2023-03-16

# * Free as in beer * #

# After including this script in the Script Editor, go to the Main script and
# replace Scene_Title.new with KuickSplasher.new and save everything!

class KuickSplasher
  TRANSITION_SECONDS = 2 # It gotta be a low value
  DISPLAY_SECONDS = 10
  # PICTURES = ["Include", "as", "many", "pictures", "as", "needed"]
  PICTURES = ["backdrop circles blue", "mysterious coast"]
  def change_picture
    Graphics.freeze
    return if @images.empty?
    @backdrop.bitmap.dispose
    @backdrop.bitmap = RPG::Cache.title(@images.shift)
    @timer = Graphics.frame_rate * DISPLAY_SECONDS
    Graphics.transition(Graphics.frame_rate * TRANSITION_SECONDS)
  end

  def main
    $data_system = load_data("Data/System.rxdata")
    $game_system = Game_System.new
    @images = PICTURES.dup
    @backdrop = Sprite.new
    @backdrop.bitmap = Bitmap.new(32, 32)
    change_picture
    while @timer > 0
      Graphics.update
      Input.update
      update
      @timer -= 1
      change_picture if @timer == 0
    end
    $scene = Scene_Title.new
    @backdrop.bitmap.dispose
    @backdrop.dispose
  end

  def update
    if Input.trigger?(Input::B) or Input.trigger?(Input::C)
      $game_system.se_play($data_system.cancel_se)
      @timer = 1
    end
  end
end


Terms & Conditions

Free as in Beer beer.
Do not repost it! Angry
Credits are optional here. Thinking
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }




Users browsing this thread: 1 Guest(s)