Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Start Screen (XP version)
Guyver's Bane
post Mar 7 2010, 04:30 PM
Post #1


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Start Screen for XP

Ever noticed how in some games they have a start screen before continuing on to the continue/new game?
Well now it's your turn to have it.
CODE
#-------------------------------------------------------------------------------
# Start Screen XP Version
# Last update : 2010/09/05
# Edited by Guyver's Bane
# Support provided by Night5h4d3 for battle test problem
# Additional edits provided by Night Runner, and stripe103
# Credit if used
#===============================================================================
# This script allows you to have a Start screen upon playing
#==============================================================================#
#
#-------------------------------------------------------------------------------
# Installation: Place above "Main". Basically it's pulg'n play.
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
# Instructions
#-------------------------------------------------------------------------------
# You must edit Scene_Title in Main, changing it to Scene_Start. See Example.
# Also BGM can be edited to your liking on line 56. Command sound on line 92.
# And title background on line 48.
#
#-------------------------------------------------------------------------------
#===============================EXAMPLE=========================================
#-------------------------------------------------------------------------------
#begin
# Graphics.freeze
# $scene = Scene_Start.new
# $scene.main while $scene != nil
# Graphics.transition(30)
#rescue Errno::ENOENT
# filename = $!.message.sub("No such file or directory - ", "")
# print("Unable to find file #{filename}.")
#end

class Scene_Start
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# If battle test
if $BTEST
$scene = Scene_Title.new
end
# Load database
$data_system = load_data("Data/System.rxdata")
# Make system object
$game_system = Game_System.new
# Make title graphic
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("001-Title01")
# Make command window
s1 = " Press Start"
@command_window = Window_Command.new(115, [s1])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
# Play title BGM
Audio.bgm_play("Audio/BGM/012-Theme01", 100, 100)
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of command window
@command_window.dispose
# Dispose of title graphic
@sprite.bitmap.dispose
@sprite.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update command window
@command_window.update
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 0 # Start
$game_system.se_play($data_system.decision_se)
#Audio.se_play("Audio/SE/choice1", 100, 100) # this line is optional for a different decision se. To use it just remove the above line.
#$game_system.se_play($data_system.decision_se)
$scene = Scene_Title.new
end
end
end
end


Screenshot:



Compatibility: Should work fine with any script.

If you have any problems please post the error message and I will try and help.


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
stripe103
post Mar 8 2010, 01:18 AM
Post #2


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Thank you a lot. Now I'm just going to edit it a bit to suit my needs.


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Mar 8 2010, 10:02 AM
Post #3


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Edit away! biggrin.gif I probably should have centered the text though. I'll do that now.

EDIT:

Script updated! "Press Start" fixed to look more centered. New screen shot also!


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
stripe103
post Mar 8 2010, 11:04 AM
Post #4


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Edited the script so that it take the Title Screen Image, desicion sound and title screen music from the database, just as the title screen itself do.


CODE
#-------------------------------------------------------------------------------
# Start Screen XP Version
# Last update : 2010/08/05          
# Edited by Guyver's Bane    
# Credit if used
#
# Slightly modified my Stripe103
#===============================================================================
#  This script allows you to have a Start screen upon playing
#==============================================================================#
#
#-------------------------------------------------------------------------------
#  Installation: Place above "Main". Basically it's pulg'n play.
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#                                 Instructions
#-------------------------------------------------------------------------------
#  You must edit Scene_Title in Main, changing it to Scene_Start. See Example.
#  Also BGM can be edited to your liking on line 56. Command sound on line 92.
#  And title background on line 48.
#
#-------------------------------------------------------------------------------
#===============================EXAMPLE=========================================
#-------------------------------------------------------------------------------
#begin
#  Graphics.freeze
#  $scene = Scene_Start.new
#  $scene.main while $scene != nil
#  Graphics.transition(30)
#rescue Errno::ENOENT
#  filename = $!.message.sub("No such file or directory - ", "")
#  print("Unable to find file #{filename}.")
#end

class Scene_Start
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # If battle test
    if $BTEST
      $scene = Scene_Title.new
    end
    # Load database
    $data_system = load_data("Data/System.rxdata")
    # Make system object
    $game_system = Game_System.new
    # Make title graphic
    @sprite = Sprite.new
    @sprite.bitmap = RPG::Cache.title($data_system.title_name)
    # Make command window
    s1 = " Press Start"
    @command_window = Window_Command.new(115, [s1])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Play title BGM
    $game_system.bgm_play($data_system.title_bgm)
    # Stop playing ME and BGS
    Audio.me_stop
    Audio.bgs_stop
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      case @command_window.index
      when 0  # New game
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Title.new
      end
    end
  end
end



I changed line 49
CODE
@sprite.bitmap = RPG::Cache.title("001-Title01")

into
CODE
@sprite.bitmap = RPG::Cache.title($data_system.title_name)

==========================
and line 57
CODE
Audio.bgm_play("Audio/BGM/012-Theme01", 100, 100)

to
CODE
$game_system.bgm_play($data_system.title_bgm)
    # Stop playing ME and BGS
    Audio.me_stop
    Audio.bgs_stop

==========================
and line 96
CODE
Audio.se_play("Audio/SE/choice1", 100, 100)

into
CODE
$game_system.se_play($data_system.decision_se)


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Mar 8 2010, 09:55 PM
Post #5


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Alright I got a name in my script of someone who modified it! biggrin.gif Who's next? The reason I didn't set it up like you have it was because the VX version this script was based on, was edited for a Dragon Quest fan-game. And if you've ever played them they have to different title like screens. The press start title with the game intro, and then the new game/continue screen like VX and XP. Keep an eye out for a updated version. Hopefully it will have a flashing image that says press start in place of the command window. As soon as I figure out how to do it in VX. tongue.gif


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
Night_Runner
post Mar 9 2010, 01:13 AM
Post #6


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




QUOTE (Guyver's Bane @ Mar 9 2010, 04:55 PM) *
Alright I got a name in my script of someone who modified it! biggrin.gif Who's next?


Sound fun smile.gif

CODE
#-------------------------------------------------------------------------------
# Start Screen XP Version
# Last update : 09/Mar/10          
# Edited by Guyver's Bane    
# Further Edits by: Night_Runner
# Credit Guyver's Bane if used.
#===============================================================================
#  This script allows you to have a Start screen upon playing
#==============================================================================#
#
#-------------------------------------------------------------------------------
#  Installation: Place above "Main". Basically it's pulg'n play.
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#                                 Instructions
#-------------------------------------------------------------------------------
#  Also BGM can be edited to your liking on line 56. Command sound on line 92.
#  And title background on line 48.
#
#-------------------------------------------------------------------------------


class Scene_Start
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
    # If battle test
    if $BTEST
      $scene = Scene_Title.new
    end
    # Load database
    $data_system = load_data("Data/System.rxdata")
    # Make system object
    $game_system = Game_System.new
    # Make title graphic
    @sprite = Sprite.new
    @sprite.bitmap = RPG::Cache.title("001-Title01")
    # Make command window
    s1 = " Press Start"
    @command_window = Window_Command.new(150, [s1])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
    # Play title BGM
    Audio.bgm_play("Audio/BGM/012-Theme01", 100, 100)
    # Execute transition
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      # Frame update
      update
      # Abort loop if screen is changed
      if $scene != self
        break
      end
    end
    # Prepare for transition
    Graphics.freeze
    # Dispose of command window
    @command_window.dispose
    # Dispose of title graphic
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Update command window
    @command_window.update
    # If C button was pressed
    if Input.trigger?(Input::C)
      # If the only option is selected.
      $game_system.se_play($data_system.decision_se)
      $scene = Scene_Title.new
    end
  end
  #--------------------------------------------------------------------------
  # * Run this script.
  #--------------------------------------------------------------------------
  $scene = Scene_Start.new
  $scene.main while $scene.is_a?(self)
end


I've only changed 3 things, firstly, you don't need to edit Main, secondly, it plays decision_se instead of the choice1 (to me it makes a bit more sense, and you don't get an error smile.gif) and I've made the window wider so it doesn't squish the text smile.gif

Sorry, I like this script, it's fun smile.gif


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Mar 9 2010, 07:15 AM
Post #7


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




QUOTE
Alright I got a name in my script of someone who modified it! biggrin.gif Who's next?

eh? your forgetting who made it battle-test compatible Guyver's Bane!


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Mar 9 2010, 10:31 AM
Post #8


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Night5h4d3:
Were you not included in the XP version? huh.gif Let me see.

EDIT

Check the first post of the script now. Sorry, I must have gotten in a hurry to post it and forgot to add you.
Also replaced the decision sound line with choice1 to play decision_se from the data base instead, but left the other line as a optional feature.

Night Runner:
I changed the size originally because it looked to have too much extra space along the side of the command. I guess I made it to small. laugh.gif


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
ragnaroc444
post Apr 18 2010, 01:04 AM
Post #9


Level 6
Group Icon

Group: Member
Posts: 81
Type: Developer
RM Skill: Beginner




Heh nice scripts guys gonna use this in my game!

is it alright if i include that in a KH 2 menu script? so it's one script takes up less room anyways


__________________________
ADD THIS TO YOUR SIG IF YOU PLAYED OR LIKE KINGDOM HEARTS




[Show/Hide] RAGNAROC444 IS SORA




[Show/Hide] GAME PROGRESS
Go to the top of the page
 
+Quote Post
   
sasofrass
post May 2 2010, 05:22 AM
Post #10


I can event anything.
Group Icon

Group: Revolutionary
Posts: 254
Type: Event Designer
RM Skill: Masterful




doesn't work with BlizzABS


__________________________
Eventing Tutorials (updated Mar-5-2011)

Easy Eventing Tutorial Submissions - All done by me!
1.] Easy Money Banking System (May-16-2010)
2.] Easy Random Lightening System (Jul-31-2010)
3.] Mining System with Events (Aug-1-2010)
4.] Easy Item Looting (Aug-8-2010)
5.] Locks (Aug-8-2010)
6.] Event Movement to Location (Jan-2-2011)
7.] Evented Locations (Feb-21-2011)
8.] Slippery Floors (Mar-5-2011)
Go to the top of the page
 
+Quote Post
   
romeboy109
post Jul 9 2010, 07:07 PM
Post #11


Level 5
Group Icon

Group: Member
Posts: 60
Type: Event Designer
RM Skill: Intermediate




Hmm... really? I don't know why but the script wouldn't work for me unless I'd edit main...


__________________________
The Names Romeboy. Romeboy109.

Yo, who likes to write stories or poems? Come to this website if thats you: http://trstories.spruz.com/

[Show/Hide] Games in Production

Cyrus -
Resident Evil XP -
Naruto: The Lost Stories & Missions -
Cyrus 2



Cyrus' Curse

My New game: Cyrus' Curse. This is the link to the website, and I just uploaded the demo not too long ago.

Cyrus' Curse Website

The the direct link to the demo:

Cyrus' Curse Demo






User-Bars (some I copied from other people because they related to me...will I get in trouble?)







Go to the top of the page
 
+Quote Post
   
poisonshift
post Jul 9 2010, 07:20 PM
Post #12


Resident Zombie Hunter
Group Icon

Group: Revolutionary
Posts: 494
Type: Developer
RM Skill: Skilled




My poor friend disappeared without a word a few months ago. So he wont be helping.


__________________________



gee i wish there was a smaller banner to post on my sig for support. :(
Go to the top of the page
 
+Quote Post
   
Phantom0x0
post Jun 26 2011, 12:29 AM
Post #13


Level 6
Group Icon

Group: Member
Posts: 83
Type: Writer
RM Skill: Advanced




If anyone wants just a black screen as the background use "Stripe103's" customization to the script but on
CODE
@sprite.bitmap = RPG::Cache.title($data_system.title_name)

Just change it to
CODE
@sprite.bitmap = RPG::Cache.title("")

( " " ) --------------------------------^

That way you can have your title music going but the screen will be black (Adds a kinda surprise to anyone who hasn't seen your title screen)

This post has been edited by Phantom0x0: Jun 26 2011, 12:29 AM


__________________________
Our Current Project Process




Games I Support Using Badges




Go to the top of the page
 
+Quote Post
   
Yusshin
post Jul 24 2011, 01:45 PM
Post #14


In'shallah !
Group Icon

Group: Revolutionary
Posts: 282
Type: Writer
RM Skill: Beginner




I installed this above Main, but the screen doesn't appear. I still get the Start Game/###/Shutdown Screen.

Any idea why :<?


__________________________
Go to the top of the page
 
+Quote Post
   
stripe103
post Jul 25 2011, 01:02 AM
Post #15


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Yup. In "Main", you have to change
CODE
$scene = Scene_Title.new
to
CODE
$scene = Scene_Start.new


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 05:05 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker