Hello everyone, I downloaded a script that modifies and animates the title.
which includes several layers of images such as Background, Fog, Layout, Particles, etc.
it turns out that in that script also modifies the title command window that has original RPG Maker (the window of "New Game", "Continue" and "shutdown")
so I dedicated myself to eliminate the particles, and the title command window that the script had by default, in order to manually include the RPG Maker title command window.
but it turns out that I have not been successful in do it.
I have tried to define the window, in addition to defining it in the same script with its actions, but it has not worked.
simply the title command window is not displayed in the title screen.
Here is the script in case you want to see it:
(The image files can be any, but if you want to try them, these are the names and measures:
in the "Titles 1" folder:
Background.png (1088x416)
Character.png (544x416)
Fog0.png (544x416)
Fog1.png (544x416)
Layout.png (544x416))
I would really like the script to execute the command window, I would really appreciate the help.
------------------------------
EDIT!:
I have solved my problem, order the entire code manually, and added the term "update_all_windows" and "dispose_all_windows" from "Scene_Base class" to "Scene_Title" in addition to adding the code to "create_command_window" in the part of the Loop.
also thank you very much for the advice and codes that have given me that also helped me to solve my problem! c:
which includes several layers of images such as Background, Fog, Layout, Particles, etc.
it turns out that in that script also modifies the title command window that has original RPG Maker (the window of "New Game", "Continue" and "shutdown")
so I dedicated myself to eliminate the particles, and the title command window that the script had by default, in order to manually include the RPG Maker title command window.
but it turns out that I have not been successful in do it.
I have tried to define the window, in addition to defining it in the same script with its actions, but it has not worked.
simply the title command window is not displayed in the title screen.
Here is the script in case you want to see it:
Ruby:
#Make Sure to Copy and Paste this into the RPG Script
#after you downloaded this or copied this!
if true
module Azian_Animated_Title
BACKGROUND_SCROLL_SPEED = [-1,0]
CHARACTER_POSITION = [0,0]
CHARACTER_AURA_EFFECT = true
TRASITION_DURATION = 10
NEWGAME_STOP_BGM = true
end
$imported = {} if $imported.nil?
$imported[:azian_animated_title_screen] = true
#Scene Title
class Scene_Title
include Azian_Animated_Title
# Main
def main
Graphics.update
Graphics.freeze
execute_setup
execute_loop
dispose
end
def execute_setup
create_sprites
end
# Execute Loop
def execute_loop
Graphics.update
Graphics.transition(TRASITION_DURATION)
play_title_music
loop do
Input.update
update
Graphics.update
break if SceneManager.scene != self
end
end
end
# Scene Title
class Scene_Title
def create_sprites
create_background
create_fog
create_character
create_layout
end
def create_fog
@fog = []
@fog_speed = [0,0,0]
for index in 0...2
@fog.push(Plane.new)
@fog[index].bitmap = Cache.title1("Fog" + index.to_s)
@fog[index].blend_type = 0
@fog[index].opacity = 0
if index == 0
@fog[index].z = 4
@fog_speed[index] = 2
else
@fog[index].z = 1
@fog_speed[index] = 1
end
end
end
#Background(To Activate the Background)
def create_background
@background = Plane.new
@background.bitmap = Cache.title1("Background")
@background_scroll = [BACKGROUND_SCROLL_SPEED[0],BACKGROUND_SCROLL_SPEED[1],0]
@background.z = 0
@background.opacity = 0
end
#Layout
def create_layout
@layout = Sprite.new
@layout.bitmap = Cache.title1("Layout")
@layout.z = 20
@layout.opacity = 0
end
#Character (Where Character is Positioned)
def create_character
@character = Sprite.new
@character.bitmap = Cache.title1("Character")
@character.ox = @character.bitmap.width / 2
@character.oy = @character.bitmap.height / 2
@character.x = CHARACTER_POSITION[0] + @character.ox
@character.y = CHARACTER_POSITION[1] + @character.oy
@character.z = 3
@character.opacity = 0
end
end
# Scene Title (Aka: The Graphics and Layout)
class Scene_Title
def dispose
Graphics.freeze
dispose_background
dispose_character
dispose_layout
dispose_fog
end
def dispose_background
@background.bitmap.dispose
@background.dispose
end
def dispose_layout
@layout.bitmap.dispose
@layout.dispose
end
def dispose_fog
@fog.each {|sprite| sprite.bitmap.dispose }
@fog.each {|sprite| sprite.dispose }
end
def dispose_character
@character.bitmap.dispose
@character.dispose
end
end
# Scene Title
class Scene_Title
def update_sprites
update_background
update_character
update_fog
end
def update_fog
@fog_speed[2] += 1
return if @fog_speed[2] < 3
@fog_speed[2] = 0
for index in 0...2
@fog[index].opacity += 5
@fog[index].ox += @fog_speed[index]
end
end
def update_background
@layout.opacity += 5
@background.opacity += 5
@background_scroll[2] += 1
return if @background_scroll[2] < 4
@background_scroll[2] = 0
@background.ox += @background_scroll[0]
@background.oy += @background_scroll[1]
end
def update_character
@character.opacity += 5
end
end
# Scene Title
class Scene_Title
def update
update_sprites
end
def play_title_music
$data_system.title_bgm.play
RPG::BGS.stop
RPG::ME.stop
end
def fadeout_all(time = 1000)
RPG::BGM.fade(time) if NEWGAME_STOP_BGM
RPG::BGS.fade(time)
RPG::ME.fade(time)
Graphics.fadeout(time * Graphics.frame_rate / 1000)
RPG::BGM.stop if NEWGAME_STOP_BGM
RPG::BGS.stop
RPG::ME.stop
end
end
end
(The image files can be any, but if you want to try them, these are the names and measures:
in the "Titles 1" folder:
Background.png (1088x416)
Character.png (544x416)
Fog0.png (544x416)
Fog1.png (544x416)
Layout.png (544x416))
I would really like the script to execute the command window, I would really appreciate the help.
------------------------------
EDIT!:
I have solved my problem, order the entire code manually, and added the term "update_all_windows" and "dispose_all_windows" from "Scene_Base class" to "Scene_Title" in addition to adding the code to "create_command_window" in the part of the Loop.
also thank you very much for the advice and codes that have given me that also helped me to solve my problem! c: