Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[VX] Game Version in Scene_Title

teth

Member

Easy script for version of game in Scene_Title
Version: 1.1
By: Teth

Introduction

This script is making an window in Scene_Title that show your game version.

Screenshots

sstitle.JPG


Demo

I think no demo is needed :)

Script

Code:
 

#==============================================================================

# ** Window_Version made by Teth

#------------------------------------------------------------------------------

#  This window displays the version of game.

#  If version isn't show at all edit the draw_text

#  parameters

#==============================================================================

 

class Window_Version < Window_Base

  #--------------------------------------------------------------------------

  # * Edits Here

  #--------------------------------------------------------------------------

  Fontname = "Arial" #Name of font that you want to use

  Fontsize = 13 #Size of font

  Version = '1.1' #Version

  #--------------------------------------------------------------------------

  # * End of edits

  #--------------------------------------------------------------------------

  

  

  #--------------------------------------------------------------------------

  # * Object Initialization

  #     x : window X coordinate

  #     y : window Y coordinate

  #--------------------------------------------------------------------------

  def initialize(x, y)

    super(x, y, 544, WLH + 32)

    refresh

  end

  #--------------------------------------------------------------------------

  # * Refresh

  #--------------------------------------------------------------------------

  def refresh

    self.contents.clear

    self.contents.font.name = Fontname

    self.contents.font.size = Fontsize

    self.contents.draw_text(-35, -10, 150, 32, "Ver. " + Version, 2) #Edit here if version isn't show at all

  end

end

 

#==============================================================================

# ** Scene_Title

#------------------------------------------------------------------------------

#  This class performs the title screen processing.

#==============================================================================

class Scene_Title < Scene_Base

  def start

    super

    load_database                     # Load database

    create_game_objects               # Create game objects

    check_continue                    # Determine if continue is enabled

    create_title_graphic              # Create title graphic

    create_command_window             # Create command window

    @version_window = Window_Version.new(0, 360)

    @version_window.opacity = 0

    play_title_music                  # Play title screen music

  end

  

  def command_new_game

    confirm_player_location

    Sound.play_decision

    $game_party.setup_starting_members            # Initial party

    $game_map.setup($data_system.start_map_id)    # Initial map position

    $game_player.moveto($data_system.start_x, $data_system.start_y)

    $game_player.refresh

    @version_window = nil

    $scene = Scene_Map.new

    RPG::BGM.fade(1500)

    close_command_window

    Graphics.fadeout(60)

    Graphics.wait(40)

    Graphics.frame_count = 0

    RPG::BGM.stop

    $game_map.autoplay

  end

end

 

Compatibility

I think it's compatible with everything that not editing Scene_Title :)
There was an problem with compatibility with OECS but now its ok ^^

Author's Notes

If i helped you can add me to credits with small letters at the end ^^
I'm not very "talented" scripter yet so there can be some bugs i think.

Sorry for bad English.
Teth
 
Could be handy for people who prefer to have things like version numbers/details on the title screen. That way they dont have to modify there title image and can change the Version easily. Nice script, it seems pretty clean.
 

teth

Member

@Near
As Desecration said after you it's to add version on title screen without editing image :)

Thanks :)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top