じ☆ve冰风 发表于 2026-7-27 14:21:52

KuickSplasher XP

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!

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.


                Ruby:       
# * 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.
Do not repost it!
Credits are optional here.


本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/kuicksplasher-xp.155878/
页: [1]
查看完整版本: KuickSplasher XP