"NewGame", "Load" and "Quit" waiting a few seconds before showing up

Discussion in 'RGSS3 Script Requests' started by athosfranco, Nov 1, 2019.

  1. athosfranco

    athosfranco Villager Member

    Messages:
    6
    Likes Received:
    1
    First Language:
    Portuguese
    Hello everyone.

    I want the "new game", "load" and "exit" commands to appear a few seconds after the title screen had already appeared.
    Like... Everything is already on screen, the title background and the game title, but those commands will just apear a few seconds later... Like 3-4 seconds later. I want the player to see my custom background for a few secs before choosing to start a new game or load a existing save file.

    I suspect this is a simple thing to do by changing a few lines of code from Window_TitleCommand, but I'm completely dumb about scripting, so I don't know how to do that. Can someone help me?

    I use RPG Maker VX Ace version 1.0.
     
    #1
  2. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    509
    Likes Received:
    364
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    This should do the trick, but it doesn't take into account any fancy title scripts, etc.
    Code:
    class Scene_Title < Scene_Base
    
      alias amn_title_scenetitle_start  start
      def start
        @duration = 90 # set this to how many frames it should take to show the window (90 = 1.5 seconds)
        amn_title_scenetitle_start
      end
    
      alias amn_title_scenetitle_createcomwind  create_command_window
      def create_command_window
        amn_title_scenetitle_createcomwind
        @command_window.close
      end
    
      def update
        super
        if @command_window.close?
          @duration -= 1
          show_command_window if @duration <= 0 || Input.trigger?(:C)
        end
      end
     
      def show_command_window
        @command_window.open
      end
     
    end
    
    EDIT: Made it so the player can press Enter to skip the wait. Updated the code above.
     
    Last edited: Nov 1, 2019
    #2
  3. athosfranco

    athosfranco Villager Member

    Messages:
    6
    Likes Received:
    1
    First Language:
    Portuguese
    Thanks for your reply! But its not working. I dont know why. :rsad:
    Should i insert a new script with this code or do i paste your code on another already existing script?

    PS: I think I should have mentioned that I use the script "Map as Title Screen v1.1" from Acezon. Im not sure if this makes it more complicated to work with.

    If you need to take a look at Acezon's script, here it is:
     
    #3
  4. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    509
    Likes Received:
    364
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    Yeah, that changes the title screen completely. Stuff like that is pretty important to mention when you're requesting help with scripts. That's like asking someone to bake you any ol' cake, and then saying you actually wanted banana cake instead once you receive it.

    I haven't tested it, but you can try putting this below Acezon's script:
    Code:
    class Scene_MapTitle
    
      alias amn_title_scenetitle_start  start
      def start
        @duration = 90 # set this to how many frames it should take to show the window (90 = 1.5 seconds)
        amn_title_scenetitle_start
      end
    
      alias amn_title_scenetitle_createcomwind  create_command_window
      def create_command_window
        amn_title_scenetitle_createcomwind
        @command_window.close
      end
    
      def update
        super
        if @command_window.close?
          @duration -= 1
          show_command_window if @duration <= 0 || Input.trigger?(:C)
        end
      end
     
      def show_command_window
        @command_window.open
      end
     
    end
     
    #4
  5. athosfranco

    athosfranco Villager Member

    Messages:
    6
    Likes Received:
    1
    First Language:
    Portuguese
    Yeah, my bad. Im sorry I have not been clear and informative since my first post. :(

    Now it works perfectly! It's exactly the way I wanted it. Thanks a lot for the help. I will add your name to the credits of my game.

    A moderator can lock the thread, my problem has been resolved. Thanks again!
     
    #5
    A-Moonless-Night likes this.

Share This Page