Jump to content

Recommended Posts

Albic's Pictured Title Screen v1.2

 

by Albic

 

 

 

Introduction

This script allows you to have one or more pictures at you title screen!

 

Features

- Have custom pictures at your titlescreen

- Have up to the amount of five extra pictures

- Easy to handle

 

Screenshots

No need of screenshots

 

How to Use

- Paste the script above main

 

Script

 

 

#==============================================================================
# ~~Pictured Title Screen~~								v1.2 (11/03/2012)
#==============================================================================
# Script by:
#	 Albic
#==============================================================================
# Terms of use:
# * You are allowed to use this script in commercial and non-commercial products,
#   but if you use it in a commercial product, you have to send me an e-mail, to
#   let me know to: "albic@spellcraft-mc.net"!
#
# * You are allowed to edit everything for yourself, but you are not allowed to
#   post this script as yours or post it at other websites without permission!
#
# * You have to credit me as well!
#==============================================================================
# Introduction:
# * To let this script work well, you have to have a title picture in the
#   pictures folder of your game/product called that name, you set in the command class
#==============================================================================

#----------------------------------------------------------------------------
#   Command class
# Edit this class, if you want some settings to be changed!
#----------------------------------------------------------------------------
module TitleScreen

 #--------------------------------------------------------------------------
 # set this to false, if you don't want the normal title
 #--------------------------------------------------------------------------
 DRAW_GAME_TITLE = true

 #--------------------------------------------------------------------------
 # set this to false, if you don't want the title picture between the title1
 # and title2, which are called from the database
 #--------------------------------------------------------------------------
 DRAW_TITLEPICTURE_BETWEEN = true

 #--------------------------------------------------------------------------
 # set this to the picture in the pictures folder, you want to be the
 # title image number one
 #--------------------------------------------------------------------------
 TITLE_ONE_NAME = "title"

 #--------------------------------------------------------------------------
 # set to true if you want a second title
 #--------------------------------------------------------------------------
 DRAW_TITLE_TWO = false

 #--------------------------------------------------------------------------
 # set this to the picture in the pictures folder, you want to be the
 # title image number two
 #--------------------------------------------------------------------------
 TITLE_TWO_NAME = "title2"

 #--------------------------------------------------------------------------
 # set to true if you want a third title
 #--------------------------------------------------------------------------
 DRAW_TITLE_THREE = false

 #--------------------------------------------------------------------------
 # set this to the picture in the pictures folder, you want to be the
 # title image number three
 #--------------------------------------------------------------------------
 TITLE_THREE_NAME = "title3"

#--------------------------------------------------------------------------
 # set to true if you want a fourth title
 #--------------------------------------------------------------------------
 DRAW_TITLE_FOUR = false

 #--------------------------------------------------------------------------
 # set this to the picture in the pictures folder, you want to be the
 # titleimage number two
 #--------------------------------------------------------------------------
 TITLE_FOUR_NAME = "title4"

 #--------------------------------------------------------------------------
 # set to true if you want a second title
 #--------------------------------------------------------------------------
 DRAW_TITLE_FIVE = false

 #--------------------------------------------------------------------------
 # set this to the picture in the pictures folder, you want to be the
 # titleimage number fifth
 #--------------------------------------------------------------------------
 TITLE_FIVE_NAME = "title5"

end

#----------------------------------------------------------------------------
#   Main class
# Do not edit anything under this line, if you don't want what you are doing!
#----------------------------------------------------------------------------
class Scene_Title < Scene_Base

 def create_background
@sprite1 = Sprite.new
@sprite1.bitmap = Cache.title1($data_system.title1_name)
if TitleScreen::DRAW_TITLEPICTURE_BETWEEN
  @sprite3 = Sprite.new
  @sprite3.bitmap = Cache.picture(TitleScreen::TITLE_ONE_NAME)
  @sprite2 = Sprite.new
  @sprite2.bitmap = Cache.title2($data_system.title2_name)
else
  @sprite2 = Sprite.new
  @sprite2.bitmap = Cache.title2($data_system.title2_name)
  @sprite3 = Sprite.new
  @sprite3.bitmap = Cache.picture(TitleScreen::TITLE_ONE_NAME)
end
if TitleScreen::DRAW_TITLE_TWO
  @sprite4 = Sprite.new
  @sprite4.bitmap = Cache.picture(TitleScreen::TITLE_TWO_NAME)
end
if TitleScreen::DRAW_TITLE_THREE
  @sprite5 = Sprite.new
  @sprite5.bitmap = Cache.picture(TitleScreen::TITLE_THREE_NAME)
end
if TitleScreen::DRAW_TITLE_FOUR
  @sprite6 = Sprite.new
  @sprite6.bitmap = Cache.picture(TitleScreen::TITLE_FOUR_NAME)
end
if TitleScreen::DRAW_TITLE_FIVE
  @sprite7 = Sprite.new
  @sprite7.bitmap = Cache.picture(TitleScreen::TITLE_FIVE_NAME)
end
center_sprite(@sprite1)
center_sprite(@sprite2)
center_sprite(@sprite3)
center_sprite(@sprite4) if TitleScreen::DRAW_TITLE_TWO
center_sprite(@sprite5) if TitleScreen::DRAW_TITLE_THREE
center_sprite(@sprite6) if TitleScreen::DRAW_TITLE_FOUR
center_sprite(@sprite7) if TitleScreen::DRAW_TITLE_FIVE

 end

 def dispose_background
@sprite1.bitmap.dispose
@sprite1.dispose
@sprite2.bitmap.dispose
@sprite2.dispose
@sprite3.bitmap.dispose
@sprite3.dispose
if TitleScreen::DRAW_TITLE_TWO
  @sprite4.bitmap.dispose
  @sprite4.dispose
end
if TitleScreen::DRAW_TITLE_THREE
  @sprite5.bitmap.dispose
  @sprite5.dispose!
end
if TitleScreen::DRAW_TITLE_FOUR
  @sprite6.bitmap.dispose
  @sprite6.dispose!
end
if TitleScreen::DRAW_TITLE_FIVE
  @sprite7.bitmap.dispose
  @sprite7.dispose!
end
 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 TitleScreen::DRAW_GAME_TITLE
 end

end

 

 

 

Credit

- Albic

 

 

Terms of use

- You are allowed to use this script in commercial and non-commercial products,

but if you use it in a commercial product, you have to send me an e-mail, to

let me know to: "albic@spellcraft-mc.net"!

 

- You are allowed to edit everything for yourself, but you are not allowed to

post this script as yours or post it at other websites without permission!

 

- You have to credit me as well!

Edited by Albic

Share this post


Link to post
Share on other sites

This is good for a beginner, but this looks like it would be more suitable as a tutorial than a complete script.

Share this post


Link to post
Share on other sites

As cool as this is to have multiple images, if they arent moving or doing individual animations, i dont see the point of having more than one or two like the default. any image you want to add you can simply flatten together and add as just 1 image. if you add movement options or something like that to each image layer, it would totally make this an awesome script =b

Share this post


Link to post
Share on other sites

Thanks really much! Gonna use it.. Is it allright if I edit it a bit.. but still give you credits?..

Share this post


Link to post
Share on other sites

sure, look at the second point at the terms and conditions:

 

- You are allowed to edit everything for yourself, but you are not allowed to

post this script as yours or post it at other websites without permission!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted