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.

Some help with questions.

Well, here we go. First of all, I would like to know how to exchange the current Scene_Title, where you click new game, etc, with Images. I found a script that does that, but it doesnt work. I just want to know how to replace the words with images, and relocate them. (I think I can relocate them myself.)
 
I made something really quick.
Place it in a new script above main.
Code:
class Scene_Title
  
  alias raz_title_update update

  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(192, [s1, s2, s3])
    @command_window.opacity = 0
    @command_window.visible = false
    @title = []
    @title[0] = Sprite.new
    @title[0].bitmap = RPG::Cache.picture("new_game")
    @title[0].y = 300
    @title[1] = Sprite.new
    @title[1].y = 342
    @title[2] = Sprite.new
    @title[2].bitmap = RPG::Cache.picture("quit")
    @title[2].y = 384
    @title[3] = Sprite.new
    @title[3].bitmap = RPG::Cache.picture("new_game2")
    @title[3].y = 300
    @title[4] = Sprite.new
    @title[4].bitmap = RPG::Cache.picture("continue2")
    @title[4].y = 342
    @title[5] = Sprite.new
    @title[5].bitmap = RPG::Cache.picture("quit2")
    @title[5].y = 384
    for i in 3..5
      @title[i].visible = false
    end
    for i in 0..5
      @title[i].x = 500
    end
    @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
      @title[1].bitmap = RPG::Cache.picture("continue_enabled")
    else
      @command_window.disable_item(1)
      @title[1].bitmap = RPG::Cache.picture("continue_disabled")
    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
    for i in 0..5
      @title[i].dispose
    end
    
  end
  
  def update
    raz_title_update
    @title[@command_window.index + 3].visible = true
    case @command_window.index
    when 0
      @title[4].visible = false
      @title[5].visible = false
    when 1
      @title[3].visible = false
      @title[5].visible = false
    when 2
      @title[4].visible = false
      @title[3].visible = false
    end
  end
end

You just need 7 images.
For:
New Game -> "new_game"
New Game when selected -> "new_game2"
Continue when enabled -> "continue_enabled"
Continue when disabled -> "continue_disabled"
Continue when selected -> "continue2"
Quit -> "quit"
Quit when selected -> "quit2"

If you have any questions just ask them.
 
Yes, you know when you pres the up arrow on the keyboard, when continue is selected, it should go up to New Game, correct? Well, it wont let me. Meaning I can only have one save file. And im making my game have 15. Maybe less, but certainly not one.
 

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