this is my first time trying to make my own script by basically frankensteining a bunch of other scripts together and well... i got the credits option to show up but not the act of changing the title image to where it shows a different title image (one that shows the credits)... i was also planning to implement where if you press the credits button again it changes back to the original image or either a set time goes off and it changes back to the original but its not at all necessary
just so long as when you start(or restart) the game and go back to the title its not still the credits image
could anyone help? thank you! :0)
just so long as when you start(or restart) the game and go back to the title its not still the credits image
could anyone help? thank you! :0)
Ruby:
class Window_TitleCommand < Window_Command
# * Create Command List
#--------------------------------------------------------------------------
alias new_make_command_list make_command_list
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command("CREDITS", :credits)
add_command(Vocab::shutdown, :shutdown)
end
end
module Scene_Credits
def create_background
dispose_background
@sprite1.dispose
@sprite1 = Sprite.new
@sprite1.bitmap = ["credits.png"]
center_sprite(@sprite1)
end
class Scene_Title < Scene_Base
#Credits
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:credits, method(:command_credits))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
end
end