After a long time, I'm back to request help again
I've gotten better at RPG Maker XP, but apparently not enough, because I am have some trouble. I have provided a script below, and now the problem!
What happens when I try to use this, is that when I open the game, for one second the window hovers over the final option (end game), and then it switches to the Option 1, which is new game. I do not use text in the windows, I have put the text into my title image I wonder if this is what causes the problem, but am not sure. At first, I thought it's okay, but as I keep playtesting it's very annoying. I would like to fix the script to make the problem go away.
This is the title screen:
And, because text is already on screen, there is no need for putting text in the actual command as script. If that makes sense?
So this is the script below as I have put it into the editor. Instructions are to paste above main. (It's the exactly same as the original, except I removed "New game" and other text commands in quote from "TEXTO_NEW_GAME" and the other commands for when you first open the title screen):
# Titlescreen Horizontal
# by lasso
#www.mundorpgmaker.com
module Config
#Configure o texto que aparece no lugar de New Game:
TEXTO_NEW_GAME = ""
#Configure o texto que aparece no lugar de Continue:
TEXTO_CONTINUE = ""
#Configure o texto que aparece no lugar de Shutdown:
TEXTO_SHUTDOWN = ""
end
class Window_Command < Window_Selectable
attr_accessor:column_max
end
class Scene_Title
def main
if $BTEST
battle_test
return
end
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_system = Game_System.new
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
s1 = ""
s2 = ""
s3 = ""
@command_window = Window_Command.new(576, [s1, s2, s3])
@command_window.column_max = 3
@command_window.opacity = 0
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
@command_window.contents.draw_text(0, 2, 190, 32, Config::TEXTO_NEW_GAME)
@command_window.contents.draw_text(191, 2, 190, 32, Config::TEXTO_CONTINUE)
@command_window.contents.draw_text(383, 2, 190, 32, Config::TEXTO_SHUTDOWN)
@continue_enabled = false
for i in 0..3
if FileTest.exist?("Save#{i+1}.rxdata")
@continue_enabled = true
end
end
if @continue_enabled
@command_window.index = 1
else
@command_window.disable_item(1)
end
$game_system.bgm_play($data_system.title_bgm)
Audio.me_stop
Audio.bgs_stop
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@command_window.dispose
@sprite.bitmap.dispose
@sprite.dispose
end
end