MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
185
First Language
Meowish
Primarily Uses
Made for a request here.

[IMG]http://s28.postimg.org/q8ibuz9fx/pressentertostart.png[/IMG]

Features:

This script overwrite the title to "continue only". Upon pressing confirm button, it directly start a game when there's no save file, or open the load screen when save file is detected.

How to Use:

[1] Paste this script below Material and above Main.

[2] Change the "PRESS ENTER" text to any text you like in the settings area of the script.

Compatibility:

This script heavily overwrite the title scene and title window.

So if you have other scripts that overwrite title, there's a chance of conflict.

Try put this script below that script when that happens.

Terms of Use:

Free for both Commercial and Non-commercial games.

Script:

#==============================================================================# ■ Meow Face Title Overwrite#------------------------------------------------------------------------------# Change the title to continue only#==============================================================================# How to Use:# [1] Put this script below Meow Face Tile Hue Script#==============================================================================module MEOWSTART # Do Not Remove!#==============================================================================# Settings Area#==============================================================================  START_TEXT = "Press ENTER" #change this to any Text you like#==============================================================================# End of Settings Area# Edit anything past this line at your own risk!#==============================================================================endclass Window_TitleCommand < Window_Command  def initialize    super(0, 0)    update_placement    self.openness = 0    @cursor_fix = true    @cursor_all = true    open  end  def alignment    return 1  end  def line_height    return 1  end  def window_width    return Graphics.width  end  def make_command_list    add_command("", :continue)  endendclass Scene_Title < Scene_Base  def create_command_window    @command_window = Window_TitleCommand.new    @command_window.opacity = 0    @meowpos = (Graphics.height / 4) * 3    @command_window.y = @meowpos    @command_window.set_handler:)continue, method:)command_continue))    draw_continue  end  def create_foreground    @foreground_sprite = Sprite.new    @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)    @foreground_sprite.z = 100    draw_game_title if $data_system.opt_draw_title  end  def draw_continue    @continue_sprite = Sprite.new    @continue_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)    @continue_sprite.z = 100    @continue_sprite.bitmap.font.size = 32    rect = Rect.new(0, @meowpos-108, Graphics.width, Graphics.height / 2)    @continue_sprite.bitmap.draw_text(rect, MEOWSTART::START_TEXT, 1)  end  def dispose_foreground    @foreground_sprite.bitmap.dispose    @foreground_sprite.dispose    @continue_sprite.bitmap.dispose    @continue_sprite.dispose  end  def command_continue    if DataManager.save_file_exists?      close_command_window      SceneManager.call(Scene_Load)    else      DataManager.setup_new_game      close_command_window      fadeout_all      $game_map.autoplay      SceneManager.goto(Scene_Map)          end  endend




For those who wish to be able to start a new game in the load scene,

please add the script below as an add on:

http://forums.rpgmakerweb.com/index.php?/topic/52452-start-new-game-from-load-scene/
 
Last edited by a moderator:

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
812
Reaction score
1,406
First Language
English
Primarily Uses
N/A
Fixed script format, credit Meow Face.
Code:
#==============================================================================
# ■ Meow Face Title Overwrite
#------------------------------------------------------------------------------
# Change the title to continue only
#==============================================================================
# How to Use:
# [1] Put this script below Meow Face Tile Hue Script
#==============================================================================
module MEOWSTART
# Do Not Remove!
#==============================================================================
# Settings Area
#==============================================================================
START_TEXT = "Press ENTER"
#change this to any Text you like
#==============================================================================
# End of Settings Area
# Edit anything past this line at your own risk!
#==============================================================================
end
class Window_TitleCommand < Window_Command
  def initialize
    super(0, 0)
    update_placement
    self.openness = 0
    @cursor_fix = true
    @cursor_all = true
    open
  end
  def alignment
    return 1
  end
  def line_height
    return 1
  end
  def window_width
    return Graphics.width
  end
  def make_command_list
    add_command("", :continue)
  end
end
class Scene_Title < Scene_Base
  def create_command_window
    @command_window = Window_TitleCommand.new
    @command_window.opacity = 0
    @meowpos = (Graphics.height / 4) * 3
    @command_window.y = @meowpos
    @command_window.set_handler(:continue, method(:command_continue))
    draw_continue
  end
  def create_foreground
    @foreground_sprite = Sprite.new
    @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
    @foreground_sprite.z = 100
    draw_game_title if $data_system.opt_draw_title
  end
  def draw_continue
    @continue_sprite = Sprite.new
    @continue_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
    @continue_sprite.z = 100
    @continue_sprite.bitmap.font.size = 32
    rect = Rect.new(0, @meowpos-108, Graphics.width, Graphics.height / 2)
    @continue_sprite.bitmap.draw_text(rect, MEOWSTART::START_TEXT, 1)
  end
  def dispose_foreground
    @foreground_sprite.bitmap.dispose
    @foreground_sprite.dispose
    @continue_sprite.bitmap.dispose
    @continue_sprite.dispose
  end
  def command_continue
    if DataManager.save_file_exists?
      close_command_window
      SceneManager.call(Scene_Load)
    else
      DataManager.setup_new_game
      close_command_window
      fadeout_all
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    end
  end
  end
 

Latest Threads

Latest Posts

Latest Profile Posts

You guys just freely offer up your Autonomy?
I don't know about you, but today the covid frustration is seriously getting to me. Haven't really seen many of my friends for two years, since i moved towns the year before this all started, and well, i miss them :(
so, here's a cute alpacaraptor sketch to heighten the mood:
W7Fhp9n.png
Whenever I start on a new chapter, it doesn't feel like the next episodes, but more like sequels :)
It can be frustrating that so many commercial games have used up titles that might otherwise be great for a project.

Forum statistics

Threads
110,656
Messages
1,054,995
Members
143,783
Latest member
NewRoots
Top