Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Scene_Title
- #------------------------------------------------------------------------------
- # This class performs the title screen processing.
- #==============================================================================
- class Scene_Title < Scene_Base
- #--------------------------------------------------------------------------
- # * Create Command Window
- #--------------------------------------------------------------------------
- alias :delayed_command create_command_window
- def create_command_window
- delayed_command
- @command_window.active = false
- @command_window.opacity = 0
- @command_window.back_opacity = 0
- @command_window.contents_opacity = 0
- end
- #--------------------------------------------------------------------------
- # * Frame Update
- #--------------------------------------------------------------------------
- alias :delayed_title :update
- def update
- delayed_title
- wait(10) if @command_window.opacity == 0
- while @command_window.opacity < 255
- @command_window.back_opacity = @command_window.contents_opacity = @command_window.opacity += 5
- wait(1)
- end
- @command_window.active = true if @command_window.opacity == 255 && !@command_window.active
- end
- #--------------------------------------------------------------------------
- # * Waits x frames
- #--------------------------------------------------------------------------
- def wait(duration)
- duration.times { update_basic }
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement