Ich habe ein Script gefunden, das "fast" perfekt ist.
#------------------------------------------------------------------------------
# * Munkis' Animated Title Screen V 1.1
# * Made by munkis
# ╔══════════╗
# ║ FEATURES ║
# ╚══════════╝
# * Adds an animated bi-layered background to the Title Screen. It started
# out as an add-on for my Animated Menuback script, but I felt it would be a
# better idea to make it a seperate script in case the user would rather use
# a different custom title screen script.
# * Uses aliases, so any scripts that add commands to the title menu should be
# compatible.
# * V 1.0: Initial release
# * V 1.1: Added logo window.
#------------------------------------------------------------------------------
module MNK_Animated_Title
#[Background picture name, Foreground picture name, Background animation
#speed (X direction), Background animation speed (Y direction), Foreground
#animation speed (X direction), Foreground animation (Y direction), window
#opacity, Logo picture name, Logo picture X position, Logo picture Y position]
#Set the animation speeds to negative values to make them go in reverse.
#Use "" for no picture.
ANIMATION_PROPERTIES = ["background","flamme",0,0,0,1,0,"logopkm",0,0]
end
class Logo_Window < Window_Base
def initialize
super(0,0,544,416)
self.z = 1
self.opacity = 0
bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[7])
rect = Rect.new(0, 0, 0, 0)
rect.x = MNK_Animated_Title::ANIMATION_PROPERTIES[8]
rect.y = MNK_Animated_Title::ANIMATION_PROPERTIES[9]
rect.width = 544
rect.height = 416
self.contents.blt(x, y, bitmap, rect)
bitmap.dispose
end
end
class Scene_Title < Scene_Base
alias munkis_title_start start
def start
munkis_title_start
@logowindow = Logo_Window.new
@title_back = Plane.new
@title_back.bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[0])
@title_fore = Plane.new
@title_fore.bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[1])
end
alias munkis_title_terminate terminate
def terminate
munkis_title_terminate
@logowindow.dispose
@title_back.dispose
@title_fore.dispose
end
alias munkis_title_update update
def update
munkis_title_update
@title_back.ox += MNK_Animated_Title::ANIMATION_PROPERTIES[2]
@title_back.oy += MNK_Animated_Title::ANIMATION_PROPERTIES[3]
@title_fore.ox += MNK_Animated_Title::ANIMATION_PROPERTIES[4]
@title_fore.oy += MNK_Animated_Title::ANIMATION_PROPERTIES[5]
end
alias munkis_command_window create_command_window
def create_command_window
munkis_command_window
@command_window.opacity = MNK_Animated_Title::ANIMATION_PROPERTIES[6]
end
end
Das Script macht die 3 Layer und bewegt den 2 Layer nach oben.
Ich habe nur zwei Probleme: Es streckt nicht den 3 Layer über das ganze Bild, und das Menü(New game etc) ist hinter dem 3 Layer.
Es müsste nur der 3 Layer nach hinten geschoben werden, und wie das Hintergrundbild über den ganzen Bildschirm gestreckt werden.
Ich hoffe diese (kleine?) Änderung ist möglich.
Mfg tr7zw
Die Möglichkeit mit dem Titel überspringen hatte ich die ganze Zeit im Hinterkopf. Da ich aber dieses passende Script hatte, hab ich mich lieber hingesetzt, versucht das Prinzip des ganzen (Ich kann selber kein ruby) zu verstehen, und hab das ganze mit mehr Glück als Verstand selbst umgeschrieben. Letztendlich waren es zwar nur 4 Zeilen, die dazugekommen sind, aber sie füllen den Bildschirm mit dem 3 Layer und bringt das Commandwindow nach oben.
Hier mal mein Code:
#------------------------------------------------------------------------------
# * Munkis' Animated Title Screen V 1.1
# * Made by munkis
# ╔══════════╗
# ║ FEATURES ║
# ╚══════════╝
# * Adds an animated bi-layered background to the Title Screen. It started
# out as an add-on for my Animated Menuback script, but I felt it would be a
# better idea to make it a seperate script in case the user would rather use
# a different custom title screen script.
# * Uses aliases, so any scripts that add commands to the title menu should be
# compatible.
# * V 1.0: Initial release
# * V 1.1: Added logo window.
#------------------------------------------------------------------------------
module MNK_Animated_Title
#[Background picture name, Foreground picture name, Background animation
#speed (X direction), Background animation speed (Y direction), Foreground
#animation speed (X direction), Foreground animation (Y direction), window
#opacity, Logo picture name, Logo picture X position, Logo picture Y position]
#Set the animation speeds to negative values to make them go in reverse.
#Use "" for no picture.
ANIMATION_PROPERTIES = ["background","CRD_PartI",0,0,0,1,0,"logopkm"]
end
class Scene_Title < Scene_Base
alias munkis_title_start start
def start
munkis_title_start
@title_back = Plane.new
@title_back.bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[0])
@title_fore = Plane.new
@title_fore.bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[1])
@sprite = Sprite.new
@sprite.bitmap = Cache.picture(MNK_Animated_Title::ANIMATION_PROPERTIES[7])
end
alias munkis_title_terminate terminate
def terminate
munkis_title_terminate
@title_logo.dispose
@title_back.dispose
@title_fore.dispose
@sprite.bitmap.dispose
@sprite.dispose
end
alias munkis_title_update update
def update
munkis_title_update
@title_back.ox += MNK_Animated_Title::ANIMATION_PROPERTIES[2]
@title_back.oy += MNK_Animated_Title::ANIMATION_PROPERTIES[3]
@title_fore.ox += MNK_Animated_Title::ANIMATION_PROPERTIES[4]
@title_fore.oy += MNK_Animated_Title::ANIMATION_PROPERTIES[5]
end
alias munkis_command_window create_command_window
def create_command_window
munkis_command_window
@command_window.opacity = MNK_Animated_Title::ANIMATION_PROPERTIES[6]
end
end